Skip to content
This repository has been archived by the owner on Dec 12, 2017. It is now read-only.

Support country code locales #266

Open
aenario opened this issue Jun 9, 2016 · 0 comments
Open

Support country code locales #266

aenario opened this issue Jun 9, 2016 · 0 comments

Comments

@aenario
Copy link
Contributor

aenario commented Jun 9, 2016

Some contributors would like to translate the cozy-mobile application into columbian spanish. However for now we drop the country part of the locale value.

It would be nice to try with the country, and fallback to same language if we dont have it.

[@language] = locale.value.split '-'
translations =
try
require '../locales/'+ @language
catch e
@language = @DEFAULT_LANGUAGE
require '../locales/' + @language

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Projects
None yet
Development

No branches or pull requests

3 participants