https://github.com/lzimul/koa-languages
Internationalization
https://github.com/lzimul/koa-languages
Last synced: 4 months ago
JSON representation
Internationalization
- Host: GitHub
- URL: https://github.com/lzimul/koa-languages
- Owner: lZiMUl
- License: gpl-3.0
- Created: 2021-12-27T07:57:29.000Z (over 3 years ago)
- Default Branch: main
- Last Pushed: 2021-12-27T08:08:40.000Z (over 3 years ago)
- Last Synced: 2025-03-08T13:34:44.704Z (4 months ago)
- Language: JavaScript
- Size: 43 KB
- Stars: 1
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- Funding: .github/FUNDING.yml
- License: LICENSE
- Security: SECURITY.md
Awesome Lists containing this project
README
# Welcome to koa-languages
[](https://b23.tv/ymEtPO)
[](https://github.com/lZiMUl/koa-languages/issues)
[](https://github.com/lZiMUl/koa-languages/network/members)
[](https://github.com/lZiMUl/koa-languages/stargazers)
[](https://github.com/lZiMUl/koa-languages/blob/main/LICENSE)## Browser Support
 |  |  |  |  |  |
--- | --- | --- | --- | --- | --- |
Latest ✔ | Latest ✔ | Latest ✔ | Latest ✔ | Latest ✔ | 11 ✔ |Install Command:
```
npm install koa-languages --save
```Use:
```js
import Languages from 'koa-languages';/* Simulated KOA Network Framework Routing,
* lang
*/
const lang = socket.request.header['accept-language'].split(',')[0]);
new Languages(lang, (socket) => {
socket.body = socket.hello;
})
```