Methods
(inner) generateNameSpaces(dir) → {array}
Generate namespaces needed by i18next from the files in the translations directory e.g ['en', 'in']
- Source:
Parameters:
Name | Type | Description |
---|---|---|
dir |
string
|
Directory containing translation files |
Returns:
- Type:
-
array
an array of strings that should be iso6391 language codes
(inner) translateiUsing18next() → {function}
Generate i18next translations
- Source:
Returns:
- Type:
-
function
a function with closure over i18next object