mirror of
https://github.com/symfony/recipes.git
synced 2026-09-12 07:36:30 +03:00
Update Flex endpoint
This commit is contained in:
+1
-1
@@ -182,7 +182,7 @@ Additional recipes can be found on the [Contrib Recipes Repository](https://gith
|
||||
| [symfony/ux-map](https://packagist.org/packages/symfony/ux-map) | [2.19](symfony/ux-map/2.19) | `ux-map`, `uxmap` |
|
||||
| [symfony/ux-react](https://packagist.org/packages/symfony/ux-react) | [2.9](symfony/ux-react/2.9) | `ux-react`, `uxreact` |
|
||||
| [symfony/ux-svelte](https://packagist.org/packages/symfony/ux-svelte) | [2.9](symfony/ux-svelte/2.9) | `ux-svelte`, `uxsvelte` |
|
||||
| [symfony/ux-translator](https://packagist.org/packages/symfony/ux-translator) | [2.9](symfony/ux-translator/2.9) | `ux-translator`, `uxtranslator` |
|
||||
| [symfony/ux-translator](https://packagist.org/packages/symfony/ux-translator) | [2.32](symfony/ux-translator/2.32) | `ux-translator`, `uxtranslator` |
|
||||
| [symfony/ux-turbo](https://packagist.org/packages/symfony/ux-turbo) | [2.20](symfony/ux-turbo/2.20) | `turbo`, `ux-turbo`, `uxturbo` |
|
||||
| [symfony/ux-twig-component](https://packagist.org/packages/symfony/ux-twig-component) | [2.13](symfony/ux-twig-component/2.13) | `twig-component`, `twig-components`, `twigcomponent`, `twigcomponents`, `ux-twig-component`, `uxtwigcomponent` |
|
||||
| [symfony/ux-vue](https://packagist.org/packages/symfony/ux-vue) | [2.9](symfony/ux-vue/2.9) | `ux-vue`, `uxvue` |
|
||||
|
||||
@@ -0,0 +1,64 @@
|
||||
{
|
||||
"manifests": {
|
||||
"symfony/ux-translator": {
|
||||
"manifest": {
|
||||
"bundles": {
|
||||
"Symfony\\UX\\Translator\\UxTranslatorBundle": [
|
||||
"all"
|
||||
]
|
||||
},
|
||||
"conflict": {
|
||||
"symfony/flex": "<1.20.0 || >=2.0.0,<2.3.0"
|
||||
},
|
||||
"copy-from-recipe": {
|
||||
"assets/": "assets/",
|
||||
"config/": "%CONFIG_DIR%/",
|
||||
"var/": "var/"
|
||||
}
|
||||
},
|
||||
"files": {
|
||||
"assets/translator.js": {
|
||||
"contents": [
|
||||
"import { createTranslator } from '@symfony/ux-translator';",
|
||||
"import { messages, localeFallbacks } from '../var/translations/index.js';",
|
||||
"",
|
||||
"/*",
|
||||
" * 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.",
|
||||
" */",
|
||||
"",
|
||||
"const translator = createTranslator({",
|
||||
" messages,",
|
||||
" localeFallbacks,",
|
||||
"});",
|
||||
"",
|
||||
"export const { trans } = translator;",
|
||||
""
|
||||
],
|
||||
"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
|
||||
},
|
||||
"var/translations/index.js": {
|
||||
"contents": [
|
||||
"console.log('Run bin/console cache:warmup to generate the translation files.');",
|
||||
""
|
||||
],
|
||||
"executable": false
|
||||
}
|
||||
},
|
||||
"ref": "69b4fe341a4d5782b0cc837c27b029d8bd8a7d4c"
|
||||
}
|
||||
}
|
||||
}
|
||||
+5
-1
@@ -1214,7 +1214,8 @@
|
||||
],
|
||||
"symfony/ux-translator": [
|
||||
"2.8",
|
||||
"2.9"
|
||||
"2.9",
|
||||
"2.32"
|
||||
],
|
||||
"symfony/ux-turbo": [
|
||||
"2.19",
|
||||
@@ -1526,6 +1527,9 @@
|
||||
"symfony/ux-translator": {
|
||||
"2.9": {
|
||||
"symfony/flex": "<1.20.0 || >=2.0.0,<2.3.0"
|
||||
},
|
||||
"2.32": {
|
||||
"symfony/flex": "<1.20.0 || >=2.0.0,<2.3.0"
|
||||
}
|
||||
},
|
||||
"symfony/ux-turbo": {
|
||||
|
||||
@@ -0,0 +1,64 @@
|
||||
{
|
||||
"manifests": {
|
||||
"symfony/ux-translator": {
|
||||
"manifest": {
|
||||
"bundles": {
|
||||
"Symfony\\UX\\Translator\\UxTranslatorBundle": [
|
||||
"all"
|
||||
]
|
||||
},
|
||||
"conflict": {
|
||||
"symfony/flex": "<1.20.0 || >=2.0.0,<2.3.0"
|
||||
},
|
||||
"copy-from-recipe": {
|
||||
"assets/": "assets/",
|
||||
"config/": "%CONFIG_DIR%/",
|
||||
"var/": "var/"
|
||||
}
|
||||
},
|
||||
"files": {
|
||||
"assets/translator.js": {
|
||||
"contents": [
|
||||
"import { createTranslator } from '@symfony/ux-translator';",
|
||||
"import { messages, localeFallbacks } from '../var/translations/index.js';",
|
||||
"",
|
||||
"/*",
|
||||
" * 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.",
|
||||
" */",
|
||||
"",
|
||||
"const translator = createTranslator({",
|
||||
" messages,",
|
||||
" localeFallbacks,",
|
||||
"});",
|
||||
"",
|
||||
"export const { trans } = translator;",
|
||||
""
|
||||
],
|
||||
"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
|
||||
},
|
||||
"var/translations/index.js": {
|
||||
"contents": [
|
||||
"console.log('Run bin/console cache:warmup to generate the translation files.');",
|
||||
""
|
||||
],
|
||||
"executable": false
|
||||
}
|
||||
},
|
||||
"ref": "69b4fe341a4d5782b0cc837c27b029d8bd8a7d4c"
|
||||
}
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user