iLib-js / ilib-data-utils

Utility library that provides classes and functions used to generate locale data files

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

ilib-data-utils

Utility library that provides classes and functions used to generate locale data files.

Full JS Docs

To see a full explanation of the classes and functions, please see the full API documentation.

License

Copyright © 2022, JEDLSoft

Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file 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.

Release Notes

v1.1.0

  • added localeMergeAndPrune which uses the Utils.getSublocales to build the locale hiearchy first, and merge and prune based on the locales. This echoes the way that ilib loads locale data files. The older mergeAndPrune only merges from root -> lang -> lang-script -> lang-script-region Specifically, it did not include the und-region locale in the hierarchy which means it was not merging and pruning the same way that ilib was loading the data.

v1.0.0

  • Initial version

About

Utility library that provides classes and functions used to generate locale data files

License:Apache License 2.0


Languages

Language:JavaScript 100.0%