druid-kyt-i18n

0.1.0-alpha.c9f7bc0b • Public • Published

i18next support for druid-kyt-starter

Configuration

The configuration is supplied in i18n key of project-kyt.config.js

|------------------------------|-------|----------------------------------------------------------------------|

Option Req. Description
mode Yes Mode of operation. Either 'po-file' or 'json-file'.
languages Yes Array of allowed languages, e.g. ['fi', 'en'].
defaultLanguage No The default language, e.g. 'fi'. If not set, first of languages.
translationsDirectory Yes Directory of the translations on disk.
translationsFilenamePattern Yes Filename pattern of the translations. E.g. '{{lng}}.{{ns}}.po'
removeDefaultLanguageFromUrl Yes Filename pattern of the translations. E.g. '{{lng}}.{{ns}}.po'
middleware No Object containing additional config for i18next-express-middleware.
i18next No Object containing additional config for i18next.
------------------------------ ------- ----------------------------------------------------------------------

Readme

Keywords

none

Package Sidebar

Install

npm i druid-kyt-i18n

Weekly Downloads

2

Version

0.1.0-alpha.c9f7bc0b

License

Apache-2.0

Unpacked Size

19.7 kB

Total Files

19

Last publish

Collaborators

  • jasum