Repository navigation
Translate Antares
Fabio Di Stasio edited this page Oct 13, 2023
·
16 revisions
- Fork this repo and clone the forked copy on your machine.
- Open
antaresfolder with your editor of choice. - Go to
antares/src/renderer/i18n/. - Create a copy of
en-US.tsand rename with your locale shortcode composed by ISO 639-1, minus (-) and ISO 3166-2 (eg. it-IT). - On first line rename
export const enUSinexport const (locale shortcode without '-'). - Translate all strings contained in this new file. Make sure to not delete
{variables}or|. - In the same folder, edit
index.ts, import the new translation and add a key: value pair like follow:
import { enUS } from './en-US';
import { itIT } from './it-IT';
messages: {
'en-US': enUS,// <- do not forget comma on the line above your new locale
'it-IT': itIT
}- In the same folder, edit
supported-locales.jsto add a key: value pair with'short-code': 'Language Name in original language'as follow:
export default {
'en-US': 'English',// <- do not forget comma on the line above your new locale
'it-IT': 'Italiano'
};- Install Node.js.
- Save and run
npm i&npm run debuginantaresfolder. - In Antares app just opened go to setting, select your brand new translation and test that everything works.
- Commit and make a pull request on this repo!
- Download this file.
- Translate all strings contained in this file. Make sure to not delete
{variables}or|. - Rename it with your locale shortcode composed by ISO 639-1, minus (
-) and ISO 3166-2 (eg. fr-FR). - Open a new issue with title "New Translation: {Locale name in original language}".
- Drag the file in the issue, write your name and the link to your Github profile (if you want), i'll add in README.md.
- Submit.
- Fork this repo and clone the forked copy on your machine.
- Install Node.js.
- Open a terminal in
antaresfolder and runnpm run translation:check short-codereplacing short-code with the one you are updating. - The command will output which terms are missing or not translated from english.
- Open
antaresfolder with your editor of choice. - Go to
antares/src/renderer/i18n/and open the locale file you want to translate. - Add and translate missing terms and consider whether to translate untranslated terms.
- Send the updated translation in one of the above ways.
Do not hesitate to contact me at info@fabiodistasio.it for any questions or if you have problems with the translation procedure.
2020 © Fabio Di Stasio