From bafb90ad009ae544fb8c8b77c0f10413348d6694 Mon Sep 17 00:00:00 2001 From: "github-action[bot]" <> Date: Fri, 5 Dec 2025 08:35:56 +0000 Subject: [PATCH] Update Flex endpoint --- RECIPES.md | 2 +- ...4fe341a4d5782b0cc837c27b029d8bd8a7d4c.json | 64 +++++++++++++++++++ index.json | 6 +- symfony.ux-translator.2.32.json | 64 +++++++++++++++++++ 4 files changed, 134 insertions(+), 2 deletions(-) create mode 100644 archived/symfony.ux-translator/69b4fe341a4d5782b0cc837c27b029d8bd8a7d4c.json create mode 100644 symfony.ux-translator.2.32.json diff --git a/RECIPES.md b/RECIPES.md index 1597dae8..b524d07b 100644 --- a/RECIPES.md +++ b/RECIPES.md @@ -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` | diff --git a/archived/symfony.ux-translator/69b4fe341a4d5782b0cc837c27b029d8bd8a7d4c.json b/archived/symfony.ux-translator/69b4fe341a4d5782b0cc837c27b029d8bd8a7d4c.json new file mode 100644 index 00000000..de7964a5 --- /dev/null +++ b/archived/symfony.ux-translator/69b4fe341a4d5782b0cc837c27b029d8bd8a7d4c.json @@ -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" + } + } +} diff --git a/index.json b/index.json index 33b18581..5d5b3fa6 100644 --- a/index.json +++ b/index.json @@ -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": { diff --git a/symfony.ux-translator.2.32.json b/symfony.ux-translator.2.32.json new file mode 100644 index 00000000..de7964a5 --- /dev/null +++ b/symfony.ux-translator.2.32.json @@ -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" + } + } +}