Closed jan-niestadt closed 3 months ago
This is a very basic setup for translating the app using vue-i18n.
Default message files are in src/frontend/src/locales, e.g. en.json.
src/frontend/src/locales
en.json
Per-corpus override message files can be placed in $corpusInterfaceDataDir/static/locales with the same name, e.g. en.json.
$corpusInterfaceDataDir/static/locales
There's no locale switching widget yet, but you can test it using vueRoot._i18n.locale = 'nl;` in the browser's dev console.
vueRoot._i18n.locale = 'nl
TODO:
This is a very basic setup for translating the app using vue-i18n.
Default message files are in
src/frontend/src/locales
, e.g.en.json
.Per-corpus override message files can be placed in
$corpusInterfaceDataDir/static/locales
with the same name, e.g.en.json
.There's no locale switching widget yet, but you can test it using
vueRoot._i18n.locale = 'nl
;` in the browser's dev console.TODO: