Skip to content

bug(i18n): Header Text does not change after grid is rendered. #4085

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

Closed
hk-skit opened this issue Jul 30, 2015 · 3 comments
Closed

bug(i18n): Header Text does not change after grid is rendered. #4085

hk-skit opened this issue Jul 30, 2015 · 3 comments

Comments

@hk-skit
Copy link

hk-skit commented Jul 30, 2015

I am using ui-grid in my project. I am implementing i18n. I have found that header text does not change once the grid rendered. I am using several local languages like English, German, Spanish. When I change from English to German or any other language, the header doesn't. I have to refresh the page to make it working. Is there any workaround for this? I have found you guys have a TODO note for it. Please let me know if there's any workaround for that.

@Olithom
Copy link

Olithom commented Jun 21, 2016

I'have the same problem. Is there any workaround today ? Render again with $rootScope.on('$uiI18n') ?

@mportuga
Copy link
Member

I have noticed that this issue is even reproducible in the tutorial for i18n. We would welcome a PR for it.

@mportuga mportuga changed the title Header Text does not change after grid is rendered. bug(i18n): Header Text does not change after grid is rendered. Dec 14, 2016
@RajashekarReddyAleti
Copy link

I have a dropdown of languages.On selecting one language, I want to change the language of Ui-grid menu,pagination,etc.But it is not happening.
I observed that setting ui-i18n="en" in template defination in ui-grid.js file.Because of this if i set ui-i18n="some language" ,it rendering as ui-i18n="some language en" and this causing parsing error.

Presently in my project,I included ui-grid in ng-if and setting ui-i18n="rootScope.langKey",and removed ui-i18n="en" from template in ui-grid.js file.Now ui-grid is rendering in different languages.

Please tell me is there any other solution to change language of ui-grid dynamically without modifyng ui-grid.js file.

JSlain added a commit to JSlain/ui-grid that referenced this issue Jul 15, 2017
…returned value get displayed). Default Menu Items titles now are functions that return translated value, so translation changes at runtime.
JSlain added a commit to JSlain/ui-grid that referenced this issue Jul 15, 2017
mportuga pushed a commit that referenced this issue Aug 1, 2017
…alue get displayed). Default Menu Items titles now are functions that return translated value, so translation changes at runtime.
vishalnarewade pushed a commit to vishalnarewade/ui-grid that referenced this issue Nov 6, 2017
…returned value get displayed). Default Menu Items titles now are functions that return translated value, so translation changes at runtime.
vishalnarewade pushed a commit to vishalnarewade/ui-grid that referenced this issue Nov 6, 2017
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

4 participants