@hug/ngx-g11n
Version:
Angular helpers for internationalizing and localizing your application
86 lines (85 loc) • 2.82 kB
JSON
{
"$schema": "http://json-schema.org/draft-07/schema",
"$id": "ng-add",
"title": "ng-add schematic",
"type": "object",
"properties": {
"project": {
"description": "Name of the Angular project",
"type": "string",
"$default": {
"$source": "projectName"
}
},
"defaultLanguage": {
"x-prompt": "Default language",
"description": "Default language",
"type": "string",
"default": "fr-CH"
},
"defaultCurrency": {
"x-prompt": "Default currency",
"description": "Default currency",
"type": "string",
"default": "CHF"
},
"useNavigatorLanguage": {
"x-prompt": "Use navigator language",
"description": "Use navigator language",
"type": "boolean",
"default": true
},
"loadLocaleExtra": {
"x-prompt": "Use Angular locale extra",
"description": "Use Angular locale extra",
"type": "boolean",
"default": false
},
"rootTranslationsPath": {
"x-prompt": "Path to the root translation folder",
"description": "Path to the root translation folder",
"type": "string",
"default": "/translations"
},
"translationScopes": {
"x-prompt": "Scopes to load translations from (comma-separated)",
"description": "Scopes to load translations from (comma-separated)",
"items": {
"type": "string"
},
"default": []
},
"queryParamName": {
"x-prompt": "Query param name",
"description": "Query param name",
"type": "string",
"default": "lang"
},
"interceptor": {
"x-prompt": "Auto-inject locale in request headers",
"description": "Auto-inject locale in request headers",
"type": "boolean",
"default": true
},
"material": {
"x-prompt": "Add support for Angular Material",
"description": "Support for Angular Material",
"type": "boolean",
"default": true
},
"defaultLocales": {
"x-prompt": "Add locales [fr-CH, de-CH] by default",
"description": "Add locales [fr-CH, de-CH] by default",
"type": "boolean",
"default": true
},
"useEnhancedBuilder": {
"x-prompt": "Use enhanced builder",
"description": "Use enhanced builder",
"type": "boolean",
"default": false
}
},
"required": [],
"additionalProperties": false
}