meteor-translator icon indicating copy to clipboard operation
meteor-translator copied to clipboard

Save user preferences automatically

Open boustanihani opened this issue 11 years ago • 4 comments

This is a feature request!

It would be nice if this package uses some mechanism (for example. cookies) to save user preferences so that the selected language won't be forgotten after a page refresh!

This should then be checked before autodetection (using the accept-language header).

boustanihani avatar Aug 03 '14 11:08 boustanihani

I totally agree!

But I found no package for persistent storage on atmosphere which allows for server and client access. This is mandatory for me, as it would also solve the problem of choosing the language on the server.

But thanks for the note, i'll get to that when i have time ;)

Nemo64 avatar Aug 04 '14 10:08 Nemo64

I think it would be enough (for the most use cases) if this was only supported on the client for the beginning :)

boustanihani avatar Aug 04 '14 10:08 boustanihani

If you need a quick solution, you could simply use a cookie package and save it yourself on the client when the user selects one. Then (after meteor startup) you set the language globally.

No doubt that this feature needs to be in here, but with that you don't have to wait ;)

Nemo64 avatar Aug 04 '14 13:08 Nemo64

Thanks for the tip Nemo, I am using the cookie package and it works fine :)

boustanihani avatar Aug 06 '14 16:08 boustanihani