Skip to content

Instantly share code, notes, and snippets.

@jbgutierrez
Created April 27, 2016 10:35
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save jbgutierrez/3f163de61a7ce8bd25a14f13cd6fe52b to your computer and use it in GitHub Desktop.
Save jbgutierrez/3f163de61a7ce8bd25a14f13cd6fe52b to your computer and use it in GitHub Desktop.
Propuesta de nombrado de claves de localización
// ahora
diccionarios = [channel_][territory_]language
templates = [channel_][territory_]language
configuraciones = [channel_]territory[_language]
// propuesta
The locale naming convention is:
language[_territory][.codeset][@modifier]
where a two-letter language code is from ISO 639, a two-letter territory code is
from ISO 3166, codeset is the name of the codeset that is being used in the
locale, and modifier is the name of the characteristics that differentiate the
locale from the locale without the modifier.
diccionarios = language[-territory][@channel]
templates = language[-territory][@channel]
configuraciones = [language-]territory[@channel]
El hecho de usar "-" en lugar de "_" es para diferenciarlo del locale empleado
por commerce.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment