https://github.com/box/box-languages
Languages used by other box projects
https://github.com/box/box-languages
Last synced: about 1 year ago
JSON representation
Languages used by other box projects
- Host: GitHub
- URL: https://github.com/box/box-languages
- Owner: box
- License: apache-2.0
- Created: 2018-03-07T19:37:23.000Z (over 8 years ago)
- Default Branch: master
- Last Pushed: 2024-06-28T13:43:31.000Z (almost 2 years ago)
- Last Synced: 2025-05-06T00:14:42.648Z (about 1 year ago)
- Language: JavaScript
- Homepage:
- Size: 13.7 KB
- Stars: 2
- Watchers: 60
- Forks: 3
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
Project for listing the locales that other box frontend projects are using when building.
When adding a new locale, please bump up the version in package.json before publishing to npmjs.
# To add a new locale
1. Add the new locale in [index.js](index.js).
2. Bump the version in [package.json](package.json).
3. Run the "Release Box Languages" Jenkins job to publish to npmjs.
# Usage examples:
To get the list of BCP-47 language tags that are officially supported by Box:
```js
const languages = require('@box/languages');
languages.forEach(...do something...);
```
To get the full languages object that are officially supported by Box:
```js
const { boxLanguages } = require('@box/languages');
boxLanguages.forEach(...do something...);
```