Skip to content

Add multilangiage module to project#289

Open
pdaneshmand wants to merge 1 commit intoangular-app:masterfrom
pdaneshmand:multilanguage
Open

Add multilangiage module to project#289
pdaneshmand wants to merge 1 commit intoangular-app:masterfrom
pdaneshmand:multilanguage

Conversation

@pdaneshmand
Copy link
Copy Markdown

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

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.

1 participant