https://github.com/dyweb/tam-i18n
i18n (internationalization) plugin for Tam.
https://github.com/dyweb/tam-i18n
i18n tam
Last synced: 12 months ago
JSON representation
i18n (internationalization) plugin for Tam.
- Host: GitHub
- URL: https://github.com/dyweb/tam-i18n
- Owner: dyweb
- License: mit
- Created: 2017-11-09T04:03:50.000Z (over 8 years ago)
- Default Branch: master
- Last Pushed: 2018-03-30T06:27:19.000Z (over 8 years ago)
- Last Synced: 2025-07-06T13:03:46.156Z (12 months ago)
- Topics: i18n, tam
- Language: JavaScript
- Homepage:
- Size: 5.86 KB
- Stars: 0
- Watchers: 10
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# Tam-i18n
HTML i18n (internationalization) support for [Tam](https://github.com/arrowrowe/tam).
## Usage
This plugin wraps [gulp-html-i18n](https://github.com/webyom/gulp-html-i18n). Here is an example:
```json
{
// ...
"plugins": {
"tam-i18n": {
"src": ["./src/index.html"],
"dest": "./",
"langDir": "./lang"
}
},
// ...
}
```
The `lang` directory is listed as follows:
```
lang
├─ en-US
│ └─ index.json
└─ zh-CN
└─ index.json
```
In the example above, both `index.en-US.html` and `index.zh-CN.html` will be generated.
## License
MIT License