Enyo wrapper for ilib globalization/internationalization library.
  • JavaScript 99.8%
  • HTML 0.2%
Find a file
Repository files (latest commit first)
Filename Latest commit message Latest commit date
Aaron Tam 8c26cea5ea Merge pull request #156 from enyojs/PLAT-34215-blakestephens-master
Removed overrides for the 3 new supported languages.

Reviewed-By: Teck Liew (teck.liew@lge.com)
Integrated-By: Aaron Tam (aaron.tam@lge.com)
2017-01-17 11:57:52 -08:00
ilib Added check for navigator.language for ie support 2016-02-25 14:39:55 -08:00
src Removed overrides for the 3 new supported languages. 2017-01-17 11:55:15 -08:00
test Fix BHV-18006 2014-11-20 16:30:26 -08:00
testcli The packed buffere and zoneinfo work in nodejs now 2014-05-23 14:55:05 -07:00
.enyoconfig update for 0.5.1 tools 2015-08-27 13:41:50 -07:00
.gitignore update for 0.5.1 tools 2015-08-27 13:41:50 -07:00
.jshintignore Add jshint-checking files to enyo-ilib 2013-10-09 13:39:04 -07:00
.jshintrc Add jshint-checking files to enyo-ilib 2013-10-09 13:39:04 -07:00
bower.json preparing for bower integration 2015-04-24 16:32:03 -07:00
deploy.json ENYO-3012: use packagejs: instead of source: in deploy.json 2013-09-05 16:27:25 +02:00
index.js Update version string to 2.7.0 2016-03-31 10:30:58 -07:00
LICENSE-2.0.txt Add Apache 2.0 license file, update README.md to mention license and add pointers to original project. 2013-07-18 16:17:18 -05:00
nodeglue.js Fix BHV-18006 2014-11-20 16:30:26 -08:00
package.json Update version string to 2.7.0 2016-03-31 10:30:58 -07:00
README.md remove samples from ilib 2015-04-24 15:28:34 -05:00
testRunner.js The packed buffere and zoneinfo work in nodejs now 2014-05-23 14:55:05 -07:00

enyo-ilib

Enyo and nodejs wrapper for ilib globalization/internationalization library.

Both Enyo and nodejs wrappers define the $L function used to wrap localizable strings and perform translations.

Enyo

To use this in an Enyo application, put this library in your Enyo libs directory, then edit your package.js:

enyo.depends(
    "$lib/enyo-ilib",
<rest of your dependencies>
);

Now the "ilib" namespace is available to use in your app.

If you want the core (resources and string translation) or full versions, you should instead use

enyo.depends(
    "$lib/enyo-ilib/core-package.js",
<rest of your dependencies>
);

or

enyo.depends(
    "$lib/enyo-ilib/full-package.js",
<rest of your dependencies>
);

nodejs

To use this under nodejs, check out this module under your nodejs app/service. Then, in your js, do:

var ilibmodule = require("./enyo-ilib");
var ilib = ilibmodule.ilib;
var $L = ilibmodule.$L;

Now the ilib namespace is available to use as normal.

Samples

All samples reside in a consolidated sample app for Enyo and its libraries: enyo-strawman

Unless otherwise specified, all content, including all source code files and documentation files in this repository are:

Copyright (c) 2014 LG Electronics

Unless otherwise specified or set forth in the NOTICE file, all content, including all source code files and documentation files in this repository are: Licensed under the Apache License, Version 2.0 (the "License"); you may not use this content except in compliance with the License. You may obtain a copy of the License at

http://www.apache.org/licenses/LICENSE-2.0

Unless required by applicable law or agreed to in writing, software distributed under the License is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the License for the specific language governing permissions and limitations under the License.

This work is based on the Apache-2.0 licensed iLib from JEDLsoft.