Interface to define localizations for vue-js-cron The localization strings are accessed by {periodId}.{fieldId}.{cronType}.{position}

See src/locale/en.ts for the english localization object.

Example

Here is an incomplete example

const myLocale: Localization = {
'*': {
prefix: 'Every',
'*': {
empty: { text: 'any {field.id}' },
// ...
},
hour: {
empty: { text: 'every' },
// ...
},
},
month: {
prefix: 'EVERY',
},
// ...
}

Hierarchy

  • Localization

Indexable

[periodId: string]: unknown

Allows custom period ids

Properties

* is used as a wildcard and matches any period id

Generated using TypeDoc