Skip to content

Commit

Permalink
refactor: rename everyXatY to everyAt
Browse files Browse the repository at this point in the history
  • Loading branch information
abichinger committed Feb 23, 2024
1 parent ef3ec57 commit a10520b
Show file tree
Hide file tree
Showing 3 changed files with 5 additions and 6 deletions.
8 changes: 4 additions & 4 deletions core/src/locale/en.js
Original file line number Diff line number Diff line change
Expand Up @@ -5,25 +5,25 @@ export default {
value: '{{value.text}}',
range: '{{start.text}}-{{end.text}}',
everyX: 'every {{every.value}} {{field.id}}(s)',
everyXatY: 'every {{every.value}} {{field.id}}(s), starting at {{at.value}} {{field.id}}(s)'
everyAt: 'every {{every.value}} {{field.id}}(s), starting at {{at.value}} {{field.id}}(s)'
},
monthField: {
prefix: 'in',
value: '{{value.alt}}',
range: '{{start.alt}}-{{end.alt}}',
everyXatY: 'every {{every.value}} {{field.id}}(s), starting in {{at.alt}}'
everyAt: 'every {{every.value}} {{field.id}}(s), starting in {{at.alt}}'
},
dayField: {
prefix: 'on',
everyXatY: 'every {{every.value}} {{field.id}}(s), starting on the {{at.alt}} of the month'
everyAt: 'every {{every.value}} {{field.id}}(s), starting on the {{at.alt}} of the month'
},
dayOfWeekField: {
prefix: 'on',
empty: 'every day of the week',
value: '{{value.alt}}',
range: '{{start.alt}}-{{end.alt}}',
everyX: 'every {{every.value}} day(s) of the week',
everyXatY: 'every {{every.value}} day(s) of the week, starting on {{at.alt}}'
everyAt: 'every {{every.value}} day(s) of the week, starting on {{at.alt}}'
},
hourField: {
prefix: 'at'
Expand Down
2 changes: 1 addition & 1 deletion core/src/types.js
Original file line number Diff line number Diff line change
Expand Up @@ -144,7 +144,7 @@ class EveryAtColumn extends CronColumn {
}

get localeKey(){
return 'everyXatY'
return 'everyAt'
}

get localeParams(){
Expand Down
1 change: 0 additions & 1 deletion core/test/multiple.test.js
Original file line number Diff line number Diff line change
@@ -1,7 +1,6 @@
import {MultipleColumns} from '../src/fields/multiple'
import util from '../src/util'
import types from '../src/types'
// const {multiple.strToArray, multiple.arrayToStr} = multiple
const {Range,genItems} = util
const {Field} = types

Expand Down

0 comments on commit a10520b

Please sign in to comment.