mirror of
https://github.com/symfony/recipes.git
synced 2026-09-15 17:16:24 +03:00
Update Flex endpoint
This commit is contained in:
@@ -0,0 +1,51 @@
|
||||
{
|
||||
"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"
|
||||
}
|
||||
}
|
||||
}
|
||||
@@ -3,7 +3,7 @@
|
||||
"symfony/ux-translator": {
|
||||
"manifest": {
|
||||
"bundles": {
|
||||
"Symfony\\UX\\Translator\\TranslatorBundle": [
|
||||
"Symfony\\UX\\Translator\\UxTranslatorBundle": [
|
||||
"all"
|
||||
]
|
||||
},
|
||||
@@ -45,7 +45,7 @@
|
||||
"executable": false
|
||||
}
|
||||
},
|
||||
"ref": "368d87bd6a1888d83b6b028692cdb09c2097f004"
|
||||
"ref": "3c29d2e6ff46e9c91cd82c95aea7ba61eb8d7fbe"
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user