An open API service indexing awesome lists of open source software.

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.

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