0.16.0 • Published 4 years ago
@qualtrics/ui-i18n v0.16.0
UI Internationalization
The @qualtrics/ui-i18n package contains translations for the Qualtrics Design System UI component libraries.
Usage
Install the package as a dependency
npm install --save @qualtrics/ui-i18nThere are various ways to import depending on the use case.
- The default includes all the languages that have been translated for the module.
import '@qualtrics/ui-i18n'; - A single translation.
import '@qualtrics/ui-i18n/dist/lang/DE.js';
Translation Generator
A generic translation generator has been included with this package and can be consumed by any other project to generate translations in the same way.
A config file is required to use the generator.
Usage
node node_modules/@qualtrics/ui-i18n/generate --config ./path/to/i18n.config.jsCommand Line Arguments
--config: Default: i18n.config.js. Specifies the location of the config file.
Configuration
outputPath: The location to output the generated translations.teamId: The identifier for your team when consuming translations. See theTranslationsrepo's README for more info.appId: A unique string identifier for the application that is accessing this endpoint. See theTranslationsrepo's README for more info.data: The namespaces to consume. See theTranslationsrepo's README for more info.
Example Config
i18n.config.js
module.exports = {
outputPath: 'lang',
teamId: 'cfe',
appId: 'ui-i18n',
data: ['QualtricsDesignSystemUI'],
};0.16.0
4 years ago
0.15.0
4 years ago
0.14.0
4 years ago
0.13.0
5 years ago
0.11.0
5 years ago
0.12.0
5 years ago
0.10.0
5 years ago
0.9.0
5 years ago
0.8.0
5 years ago
0.7.0
5 years ago
0.6.0
6 years ago
0.5.0
6 years ago
0.4.1
6 years ago
0.4.0
6 years ago
0.3.0
6 years ago
0.2.1
6 years ago
0.2.0
6 years ago
0.1.4
6 years ago
0.1.3
6 years ago
0.1.2
6 years ago