Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[NS] Internationalisation #10

Closed
orovellotti opened this issue Dec 6, 2018 · 5 comments
Closed

[NS] Internationalisation #10

orovellotti opened this issue Dec 6, 2018 · 5 comments
Labels
staging Tests fonctionnels, évaluation

Comments

@orovellotti
Copy link
Contributor

orovellotti commented Dec 6, 2018

Ne pas mettre de français en dur dans l'interface.
Il faut pouvoir traduire un fichier de langue (I8n) ?
https://www.i18next.com/

@orovellotti
Copy link
Contributor Author

orovellotti commented Dec 6, 2018

Ce qui est en base n'est pas en mutli lingue
On part sur une instance = une langue

@lpofredc lpofredc added this to To do in NaturaSolutions Devs Feb 26, 2019
@lpofredc lpofredc changed the title Internationalisation [NS] Internationalisation Feb 26, 2019
@ghost
Copy link

ghost commented Mar 5, 2019

Le système est en place. Il faut annoter toutes les balises qui contiennent du texte à traduire avec la directive i18n

@camillemonchicourt
Copy link
Member

OK je vois bien le paramètre dans la conf qui définit la langue de l'instance GN-citizen : https://github.com/PnX-SI/GeoNature-citizen/blob/dev/config/default_config.toml.example#L13

Mais je n'ai pas trouvé les fichiers de langue ?

@ghost
Copy link

ghost commented Mar 6, 2019

Une fois régénérés (nous avons suivi le guide officiel), on les retrouve dans frontend/src/locale/messages.${lang}.xlf

Le fichier frontend/server.ts contient, en commentaire, un exemple de setup pour une instance multilingue pour ssr & seo par exemple.

@camillemonchicourt
Copy link
Member

OK merci

@ghost ghost added the staging Tests fonctionnels, évaluation label Mar 18, 2019
@ghost ghost moved this from To do to Testing in NaturaSolutions Devs Mar 22, 2019
@ghost ghost moved this from Testing to Done in NaturaSolutions Devs May 27, 2019
@lpofredc lpofredc closed this as completed Jul 2, 2019
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
staging Tests fonctionnels, évaluation
Projects
Development

No branches or pull requests

3 participants