INL / corpus-frontend

BlackLab Frontend, a feature-rich corpus search interface for BlackLab.
16 stars 7 forks source link

Basic setup for multi-lingual version #484

Closed jan-niestadt closed 3 months ago

jan-niestadt commented 4 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.

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: