Second version of Outil.
A nice & clean build to provide :
- multilingual support
- a new interface
- modular extensibility
- refactored parts of the previous Outil tool
Dependencies: yarn, gatsby
- Clone repository locally
yarn install --dev
to install all dependencies, including development onesgatsby develop
to start development server
Octave uses i18next & i18next-react for localization and translations.
Translation files can be found in ./src/locales
and are generated with babel.
To add a new text to translate, simply enclose it with the Trans
component :
<Trans>Texte à traduire</Trans>
Next run yarn run extract
to extract all translations to the locale files, where the correct translations can be updated:
{
"Texte à traduire": "Text to translate"
}
Available languages are configured in ./languages.js
, and babel configuration is in babel-i18next-extract.config.js
.