Skip to content

Interface: I18nMessages ​

The application's message keys and their arguments, declared by the application to type-check I18n.t and the translators: a wrong key or a missing argument is then a compilation error. lakutata i18n types (or generateMessageTypes) generates the declaration from the messages of the default language, or it is written by hand, in the module the application imports the i18n from:

declare module 'lakutata/com/i18n' {
    interface I18nMessages {
        'order.count': { count: number }
    }
}

Empty by default: any key and any arguments are then accepted.

Released under the MIT License.