UNPKG

otus-localization

Version:

A translation tool for Angular i18n(angular-t9n)

50 lines (49 loc) 1.73 kB
{ "$schema": "http://json-schema.org/schema", "$id": "otus-translation-ng-add", "title": "Angular t9n ng-add", "type": "object", "properties": { "project": { "type": "string", "description": "The name of the project.", "$default": { "$source": "projectName" } }, "translationFile": { "type": "string", "format": "path", "default": "messages.xlf", "description": "The file path to the root translation file.", "x-prompt": "Path to the root translation file?" }, "autoTargetFile": { "type": "string", "format": "path", "default": "", "description": "Auto File", "x-prompt": "Path to Auto File" }, "targetTranslationPath": { "type": "string", "format": "path", "default": "src/locales", "description": "The directory path of the target translation files.", "x-prompt": "Path to the target translation files?" }, "includeContextInTarget": { "type": "boolean", "default": false, "description": "Whether to include the context information (like notes) in the target files.", "x-prompt": "Should the context information (like notes) be included in the target files? This is useful for sending the target translation files to translation agencies/services." }, "packageScript": { "type": "boolean", "default": true, "description": "Whether to add a script entry in package.json to start the translation server.", "x-prompt": "Add a command to package.json scripts to start the translation server? (The translation server can be started via 'ng run {projectName}:t9n')" } }, "required": ["translationFile"] }