diff options
author | Ruben Rodriguez <ruben@gnu.org> | 2018-09-13 20:39:48 -0400 |
---|---|---|
committer | Ruben Rodriguez <ruben@gnu.org> | 2018-09-13 21:02:13 -0400 |
commit | d26b319fd6f98517cc3421f10bf18698b953e4d2 (patch) | |
tree | bc70c4e472a2eaf514d411dba5067d530e5bbea9 /data/extensions/jid1-KtlZuoiikVfFew@jetpack/node_modules/pathfinder/docs/l10n.md | |
parent | c3b304c51a3386ea09527a479a883253ea35243a (diff) |
Updated extensions list for v60
Diffstat (limited to 'data/extensions/jid1-KtlZuoiikVfFew@jetpack/node_modules/pathfinder/docs/l10n.md')
-rw-r--r-- | data/extensions/jid1-KtlZuoiikVfFew@jetpack/node_modules/pathfinder/docs/l10n.md | 41 |
1 files changed, 0 insertions, 41 deletions
diff --git a/data/extensions/jid1-KtlZuoiikVfFew@jetpack/node_modules/pathfinder/docs/l10n.md b/data/extensions/jid1-KtlZuoiikVfFew@jetpack/node_modules/pathfinder/docs/l10n.md deleted file mode 100644 index 2207d16..0000000 --- a/data/extensions/jid1-KtlZuoiikVfFew@jetpack/node_modules/pathfinder/docs/l10n.md +++ /dev/null @@ -1,41 +0,0 @@ -<!-- contributed by Erik Vold [erikvvold@gmail.com] --> - -The `l10n` module allows one to localize their Jetpack. - -## Example ## - - var _ = require("l10n").l10n({ - filename: "text.properties", - baseURL: require("self").data.url("locale") - }); - console.log(_("hello.world")); - -<api name="l10n"> -@function - Creates and returns a function which can be used to access translations by - key. - - Translations should be grouped together in a folder which contains a folder - for each locale being supported whose name is the locale being supported - (examples: "en", "en-US", "ja", "ja-JP"). Inside each locale's folder should - be a `.properties` file with a name that is the same for every locale. Here - is a example of how you might organize things: - - - data/ - - locale/ - - en/ - - text.properties - - ja/ - - text.properties - -@param options {object} - - -@prop filename {string} - The name of the file storing the translations. -@prop baseURL {string} - The url to the folder containing the locale folders. -@prop [defaultLocale] {string} - Defines the locale to use when you don't have translations for the user's - locale. The default is `"en"`. -</api> |