Skip to content

PKLOC.localizedText

kerrishotts edited this page Nov 12, 2012 · 1 revision

(part of PKLOC)

Type: dictionary

Default: empty dictionary

Technically a regular Javascript object, the object is treated as an associative dictionary of associative dictionaries. For example:

var x = PKLOC.localizedText;
x["en"]["CAT"] = "Cat";
x["es"]["CAT"] = "Gato";
x["es-ES"]["CAT"] = "Meow";

The first index is a valid locale in either a two character language code or in a two character language code and a two character country code. The former is to provide language translations that work for the language as a whole, and the latter is to provide language translations that work for a specific region. For example, while both Mexico (es-MX) and Spain (es-ES) speak Spanish, their idioms often vary greatly.

As this array should never be accessed or written to directly, there are no examples of use.

Notes

Never write to this object directly. Never read from this object directly.

Version

0.1 Introduced

0.2 Docs Valid

Clone this wiki locally