Skip to content

Commit b2e7219

Browse files
committed
refactor: English Localization
1 parent 56eaf90 commit b2e7219

File tree

2 files changed

+6
-2
lines changed

2 files changed

+6
-2
lines changed

core/src/__tests__/locale.spec.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -26,7 +26,7 @@ describe('locale', () => {
2626
},
2727
})
2828

29-
expect(l.getTemplate('year', 'minute', 'any', 'text')).toBe('every {{field.id}}')
29+
expect(l.getTemplate('year', 'minute', 'any', 'text')).toBe('every minute')
3030
expect(l.getTemplate('year', 'dayOfWeek', 'value', 'prefix')).toBe('and')
3131
expect(l.getTemplate('year', 'minute', 'range', 'prefix')).toBe(':')
3232
expect(l.getTemplate('custom', 'foo')).toBe('bar')

core/src/locale/en.ts

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,6 @@ const locale: Localization = {
66
suffix: '',
77
text: 'Unknown',
88
'*': {
9-
any: { text: 'every {{field.id}}' },
109
value: { text: '{{value.text}}' },
1110
range: { text: '{{start.text}}-{{end.text}}' },
1211
step: { text: 'every {{step.value}}' },
@@ -15,13 +14,15 @@ const locale: Localization = {
1514
},
1615
month: {
1716
'*': { prefix: 'in' },
17+
any: { text: 'every month' },
1818
value: { text: '{{value.alt}}' },
1919
range: { text: '{{start.alt}}-{{end.alt}}' },
2020
rangeStep: { text: '{{start.alt}}-{{end.alt}}/{{step.value}}' },
2121
stepFrom: { text: '{{start.alt}}/{{step.value}}' },
2222
},
2323
day: {
2424
'*': { prefix: 'on' },
25+
any: { text: 'every day' },
2526
noSpecific: {
2627
text: 'no specific day',
2728
},
@@ -39,12 +40,15 @@ const locale: Localization = {
3940
},
4041
hour: {
4142
'*': { prefix: 'at' },
43+
any: { text: 'every hour' },
4244
},
4345
minute: {
4446
'*': { prefix: ':' },
47+
any: { text: 'every minute' },
4548
},
4649
second: {
4750
'*': { prefix: ':' },
51+
any: { text: 'every second' },
4852
},
4953
},
5054
minute: {

0 commit comments

Comments
 (0)