refact(nested-data): transform nested data on load localization data.

This commit is contained in:
闲耘™
2015-09-18 15:14:38 +08:00
parent d5a9eb0468
commit cc81fbda18
2 changed files with 28 additions and 18 deletions

View File

@@ -21,7 +21,7 @@ koa-locales
koa locales, i18n solution for koa:
1. All locales resources location on `options.dir`.
2. resources file supports: `*.js`, `*.json` and `*.properties`, [examples](https://github.com/koajs/locales/tree/master/test/locales)
2. resources file supports: `*.js`, `*.json` and `*.properties`, [examples](test/locales/)
3. One api: `__(key[, value, ...])`
4. Auto detect request locale from `query`, `cookie` and `header: Accept-Language`