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

used i18n for translation #46

Merged
merged 15 commits into from
Oct 4, 2017
Merged

used i18n for translation #46

merged 15 commits into from
Oct 4, 2017

Conversation

nirojdyola
Copy link
Contributor

ng serve --aot --i18n-file=src/i18n/messages.es.xlf --locale=es --i18n-format=xlf

sketch

@paul But I want to switch the language dynamically without using the above command for other other language.
I have followed the doc from https://medium.com/@feloy/deploying-an-i18n-angular-app-with-angular-cli-fc788f17e358 . I think it needs to deploy in production . I"ll also try it.

Copy link
Member

@paulbert paulbert left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

See specific comment.

@@ -1,4 +1,4 @@
@import '../variables';
@import '../variables.scss';
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Is this needed for the translation? I heard there was difficulty compiling the sass, so could you post the error you're seeing here & we can decide if that requires a separate issue.

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I got an error
$ ./node_modules/.bin/ng-xi18n
Error: Compilation failed. Resource file not found: D:/planet/src/app/variables

@dogi
Copy link
Member

dogi commented Sep 20, 2017

@dogi created https://crowdin.com/project/ole-planet/ - please join

@lmmrssa
Copy link
Member

lmmrssa commented Oct 3, 2017

ng xi18n --output-path src/i18n
This will update message.xlf file. Then it will be synced to crowdin and changes done there will create pull request to the branch. Once that pull request is merged, all other language files will be updated inside src/i18n folder

@lmmrssa lmmrssa merged commit 147d2dd into master Oct 4, 2017
@lmmrssa lmmrssa deleted the i18n-multilingual branch November 7, 2017 05:46
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

4 participants