Translation
Remède is translated in multiple languages ! Let's learn how to translate Remède !
Remède has introduced a translation system since 1.3.0
. Remède uses i18n for Vue as a translation system.
Translating
The translations by languages are inside the app/src/data/translations/[locale].json
.
For example, en.json
(section "home")
You can see that there are multiple translation in english.
Add a language
Add his
app/src/data/translations/[locale].json
fileDefine it in
app/src/i18n.ts
Define your language name in
app/src/functions/locales.ts
If your language has specific dialects for the correction service, add its dialects... See Languagetool API documentation, the field "language" in the check function.
And you're done !
And about the database ?
Remède serve a French database, but we are working on internationalization of the database.
How it works ? We re-use as many code as possible across generation scripts and uses different scrapping services to build our databases.
To serve multiple databases, we define it inside server.py
See Internationalization docs for more information about a specific language.
Last updated
Was this helpful?