1.15.0 • Published 2 years ago
translations-i18n-pack v1.15.0
"analytics-ui-language-pack" Language Pack
Details
This language pack provides internationalized strings for all supported languages in typescript format for consumption
by Angular projects using the ngx-translate
library for i18n.
The language pack is designed to be used with the TDAA-UI Language Pack Starter Kit library for importing and exporting i18n strings between typescript and json formats. For more information on that library, consult its page on raleigh-git.
Tools
For easy change management, this language pack ships with a number of yarn
tools in its package.json, as described
below.
Yarn Command | Description |
---|---|
yarn bump | Alias for yarn bump:patch |
yarn bump:major | Increments the major version of your language pack in package.json , creates the corresponding tag, and pushes to the remote repository. |
yarn bump:minor | Increments the minor version of your language pack in package.json , creates the corresponding tag, and pushes to the remote repository. |
yarn bump:patch | Increments the patch version of your language pack in package.json , creates the corresponding tag, and pushes to the remote repository. |
yarn lint | Runs the ESLint utility for code style in the javascript files |
yarn lint --fix | Runs the ESLint utility for code style in the javascript files. Attempts to automatically populate missing keys with blank values. |
yarn lib:publish | Publishes your language pack to NPM using the details in package.json and .npmrc |
yarn test | Runs unit tests in the /spec folder and provides test coverage information |
tdlang | Displays the help documentation for the language pack starter kit CLI |
tdlang export | Converts and exports the translation file contents in the /ts folder into /json |
tdlang import | Converts and imports the translation file contents in the /json folder into /ts |
tdlang lint | Checks the contents of the non-base language files against the base language file for potential problems |
tdlang lint --fix | Same as tdlang lint , but automatically fixes missing keys where applicable |
tdlang translate | Creates pseudo-translations for any untranslated strings in the non-base language files (with options for targeting json files in lieu of typescript) |
tdlang upgrade | If starting from an older version of the language pack starter kit, this updates the settings for compatibility with newer versions (note: this does not upgrade the tdlang package, only your settings; you will have to do that yourself) |