5217835c55
* monthUtils.{format → nonLocalizedFormat} * Implement localization for schedule descriptions * Remove outdated comment * Add general.ordinal in Spanish Co-Authored-By: Manuel Eduardo Cánepa Cihuelo <10290593+manuelcanepa@users.noreply.github.com> * yay time zones? * fix: re-add missing keys * fix: fix broken i18n imports/initialisation * style: linting * fix: re-add english ordinal keys * fix: add remaining english ordinal keys * fix: correct dates in schedules.js * refactor: store translations keys for loot-core in loot-core * fix: add ns to i18n.t calls directly so parser can find them * feat: add spanish translation from manuelcanepa * fix: add comments to help i18n-parser to find contexts * fix: add "many" context to spanish translations Co-authored-by: Manuel Eduardo Cánepa Cihuelo <10290593+manuelcanepa@users.noreply.github.com> Co-authored-by: Tom French <tom@tomfren.ch>
16 lines
384 B
JavaScript
16 lines
384 B
JavaScript
module.exports = {
|
|
input: ['src/**/*.js'],
|
|
output: 'src/locales/$LOCALE.json',
|
|
locales: ['en-GB', 'es-ES'],
|
|
defaultNamespace: 'web',
|
|
sort: true,
|
|
// Force usage of JsxLexer for .js files as otherwise we can't pick up <Trans> components.
|
|
lexers: {
|
|
js: ['JsxLexer'],
|
|
ts: ['JsxLexer'],
|
|
jsx: ['JsxLexer'],
|
|
tsx: ['JsxLexer'],
|
|
|
|
default: ['JsxLexer']
|
|
}
|
|
};
|