https://github.com/compositejs/langpack
A javascript library for multiple languages and locales supports.
https://github.com/compositejs/langpack
datetime globalization localization multilanguage string template
Last synced: 3 months ago
JSON representation
A javascript library for multiple languages and locales supports.
- Host: GitHub
- URL: https://github.com/compositejs/langpack
- Owner: compositejs
- License: mit
- Created: 2018-06-26T05:17:30.000Z (almost 8 years ago)
- Default Branch: main
- Last Pushed: 2025-12-14T07:43:28.000Z (6 months ago)
- Last Synced: 2025-12-16T10:58:36.771Z (6 months ago)
- Topics: datetime, globalization, localization, multilanguage, string, template
- Language: TypeScript
- Homepage: https://langpack.js.org
- Size: 914 KB
- Stars: 3
- Watchers: 1
- Forks: 0
- Open Issues: 8
-
Metadata Files:
- Readme: README.md
- Changelog: CHANGELOG.md
- Contributing: CONTRIBUTING.md
- License: LICENSE
- Security: SECURITY.md
Awesome Lists containing this project
README
# LangPack
A JavaScript library for enable multiple languages for your web app.
## Installation and Usage
You can install this by [npm](https://www.npmjs.com/package/langpack).
```sh
npm i langpack
```
And you can also insert the [JavaScript bundled file](./dist/index.js) by `script` tag into your web page directly and use `LangPack` namespace to access.
[Click here](https://github.com/compositejs/langpack/wiki/installation) to read more.
## Features
LangPack help you to build a global web app or create a library with international supports.
Following are the key features that you can click to read more. The samples are written by Type Script by default in these documents.
- [Localization](https://github.com/compositejs/langpack/wiki/localization) - A set of tools to help you to set up the environment for globalization and localization.
## Building / Testing
You may need install `gulp` and `tsc` to build. Following is the command line to build this project including the source and test cases.
```sh
npm run-script build
```
You can run all test cases after building by following command line.
```sh
npm test
```
## Readme in other languages
- [简体中文](https://github.com/compositejs/langpack/wiki/shuoming)
## License
This project is [MIT Licensed](./LICENSE).
Please feel free to import this into your project. And you can also clone or fork the repository as you want.