Files
symfony-flex-recipes/symfony.ux-translator.2.8.json
github-action[bot]andgithub-action[bot] 552cbfabbf Update Flex endpoint
2023-05-26 23:35:30 +00:00

52 lines
2.1 KiB
JSON

{
"manifests": {
"symfony/ux-translator": {
"manifest": {
"bundles": {
"Symfony\\UX\\Translator\\UxTranslatorBundle": [
"all"
]
},
"copy-from-recipe": {
"assets/": "assets/",
"config/": "%CONFIG_DIR%/"
}
},
"files": {
"assets/translator.js": {
"contents": [
"/*",
" * This file is part of the Symfony UX Translator package.",
" *",
" * If folder \"../var/translations\" does not exist, or some translations are missing,",
" * you must warmup your Symfony cache to refresh JavaScript translations.",
" *",
" * If you use TypeScript, you can rename this file to \"translator.ts\" to take advantage of types checking.",
" */",
"",
"import { trans, getLocale, setLocale, setLocaleFallbacks } from '@symfony/ux-translator';",
"import { localeFallbacks } from '../var/translations/configuration';",
"",
"setLocaleFallbacks(localeFallbacks);",
"",
"export { trans };",
"export * from '../var/translations';",
""
],
"executable": false
},
"config/packages/ux_translator.yaml": {
"contents": [
"ux_translator:",
" # The directory where the JavaScript translations are dumped",
" dump_directory: '%kernel.project_dir%/var/translations'",
""
],
"executable": false
}
},
"ref": "3c29d2e6ff46e9c91cd82c95aea7ba61eb8d7fbe"
}
}
}