Add multilangiage module to project#289
Open
pdaneshmand wants to merge 1 commit intoangular-app:masterfrom
Open
Add multilangiage module to project#289pdaneshmand wants to merge 1 commit intoangular-app:masterfrom
pdaneshmand wants to merge 1 commit intoangular-app:masterfrom
Conversation
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Hello Dear Team Members
I'm pushing new module for your project . I'm adding language selection in header and now user can change language of your site .
I handle this module with directive named data-translate. I'm fully describe my module how is it work in datatraslate directive files, But I'm show you one example :
Projectsinfo is one of your keys defined in your language and when user change language , Our directive automatically read from key-value data and replace value.
Notice : I'm trying to read key-value from json files in localization folder but your project structure don't allow me for adding static files and read from them.
You can change my method in app.js. My method is changeLanguage in app.js and you can replace static data with reading from json language file with input language name. For example if user select "en" you must load from en.json in localization folder.
Good Luck