From 15eae169f9017b73bb48e9649ff231ec0814ffae Mon Sep 17 00:00:00 2001 From: "github-action[bot]" <> Date: Sun, 7 Dec 2025 07:54:46 +0000 Subject: [PATCH] Update Flex endpoint --- ...2abac415da4c3a9a6bafa059a6419beb74593.json | 70 +++++++++++++++++++ symfony.ux-translator.2.32.json | 8 ++- 2 files changed, 77 insertions(+), 1 deletion(-) create mode 100644 archived/symfony.ux-translator/20e2abac415da4c3a9a6bafa059a6419beb74593.json diff --git a/archived/symfony.ux-translator/20e2abac415da4c3a9a6bafa059a6419beb74593.json b/archived/symfony.ux-translator/20e2abac415da4c3a9a6bafa059a6419beb74593.json new file mode 100644 index 00000000..85535b41 --- /dev/null +++ b/archived/symfony.ux-translator/20e2abac415da4c3a9a6bafa059a6419beb74593.json @@ -0,0 +1,70 @@ +{ + "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'", + "", + "when@prod:", + " ux_translator:", + " # Control whether TypeScript types are dumped alongside translations.", + " # Disable this if you do not use TypeScript (e.g. in production when using AssetMapper), to speed up cache warmup.", + " # dump_typescript: false", + "" + ], + "executable": false + }, + "var/translations/index.js": { + "contents": [ + "console.log('Run bin/console cache:warmup to generate the translation files.');", + "" + ], + "executable": false + } + }, + "ref": "20e2abac415da4c3a9a6bafa059a6419beb74593" + } + } +} diff --git a/symfony.ux-translator.2.32.json b/symfony.ux-translator.2.32.json index de7964a5..85535b41 100644 --- a/symfony.ux-translator.2.32.json +++ b/symfony.ux-translator.2.32.json @@ -46,6 +46,12 @@ "ux_translator:", " # The directory where the JavaScript translations are dumped", " dump_directory: '%kernel.project_dir%/var/translations'", + "", + "when@prod:", + " ux_translator:", + " # Control whether TypeScript types are dumped alongside translations.", + " # Disable this if you do not use TypeScript (e.g. in production when using AssetMapper), to speed up cache warmup.", + " # dump_typescript: false", "" ], "executable": false @@ -58,7 +64,7 @@ "executable": false } }, - "ref": "69b4fe341a4d5782b0cc837c27b029d8bd8a7d4c" + "ref": "20e2abac415da4c3a9a6bafa059a6419beb74593" } } }