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

6.2.9_ loading application: technical translation appear on load #202

Closed
davidoesch opened this issue Aug 2, 2013 · 3 comments
Closed
Assignees

Comments

@davidoesch
Copy link
Contributor

1: VISTA IE9
2: Steps to reproduce
Cold load application http://mf-geoadmin3.bgdi.admin.ch/main/prod/
3: Result
non translated technical names appear on load in container
4: Expected Result
Application does show correct language on load.
Otherwise user thinks application is slow. This can especially observed on older mobile and slow connections... I know it is picky, but it is the first thing the user sees fomr the new app ... I think jeiziner observed the same thing

5: if possible: workaround
WAIT!
6: link to file : attache it to github

@ghost ghost assigned cedricmoullet Aug 2, 2013
@cedricmoullet
Copy link
Contributor

This is not a bug, this is a feature -> see the FOUC paragraph here: http://pascalprecht.github.io/angular-translate/#/guide/10_asynchronous-loading
Nevertheless, I also find that not so nice. We could try the proposed workaround. I was also think to show the app only when it's translated (with a loading app message) -> To be discussed.

@elemoine
Copy link
Contributor

I think that we should be able to add the lang files into some Angular $http cache at build time, as we already do for the directives' HTML partials. This may require a (probably simple and small) patch to angular-translate though.

Search Engine Optimization is something we want to discuss as well. I'd like to understand if client-side translation is compatible with multi-language indexing by search engines.

@cedricmoullet
Copy link
Contributor

We accept this behaviour in order to avoid server side translation.

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

No branches or pull requests

3 participants