lgalfaso / angular-dynamic-locale

Module to be able to change the locale at an angularjs application
http://lgalfaso.github.io/angular-dynamic-locale/
MIT License
322 stars 75 forks source link

when refresh the page default language displaying in dropdown #112

Closed ajayreddy56 closed 6 years ago

ajayreddy56 commented 7 years ago

hi,

when i select the language from drop down it's working fine and when i refresh the web page the default language is holding in drop down.how to set, whatever language user selects and refreshes the web page it should be same.

lgalfaso commented 7 years ago

The readme file at the main page reads

It is possible to specify a storage location for the locale using tmhDynamicLocaleProvider.useStorage(storageName), the name of the storage must follow the same signature as $cookieStore. The default storage location is to use a $cache, this default storage is not persistent.

It is possible to ask the storage to be $cookieStore using the shortcut tmhDynamicLocaleProvider.useCookieStorage(), internally this is exactly as performing tmhDynamicLocaleProvider.useStorage('$cookieStore')

Is there anything in this issue that is not covered there?

On Thu, Apr 13, 2017 at 12:16 PM ajayreddy56 notifications@github.com wrote:

hi,

when i select the language from drop down it's working fine and when i refresh the web page the default language is holding in drop down.how to set, whatever language user selects and refreshes the web page it should be same.

— You are receiving this because you are subscribed to this thread. Reply to this email directly, view it on GitHub https://github.com/lgalfaso/angular-dynamic-locale/issues/112, or mute the thread https://github.com/notifications/unsubscribe-auth/AAX44mf3G9ZskqvRR75RQSKk5v69hWS_ks5rvfXtgaJpZM4M8g1H .

lgalfaso commented 6 years ago

Without an update in quite some time, I think it is safe to close this issue.