From ecc8ea106133d87b6eb0629a894158f39c63e4cc Mon Sep 17 00:00:00 2001 From: "github-action[bot]" <> Date: Wed, 26 Apr 2023 14:37:18 +0000 Subject: [PATCH] Update Flex endpoint --- RECIPES.md | 1 + ...d87bd6a1888d83b6b028692cdb09c2097f004.json | 51 +++++++++++++++++++ index.json | 5 ++ symfony.ux-translator.2.7.json | 51 +++++++++++++++++++ 4 files changed, 108 insertions(+) create mode 100644 archived/symfony.ux-translator/368d87bd6a1888d83b6b028692cdb09c2097f004.json create mode 100644 symfony.ux-translator.2.7.json diff --git a/RECIPES.md b/RECIPES.md index 0f666594..5ce65d05 100644 --- a/RECIPES.md +++ b/RECIPES.md @@ -124,6 +124,7 @@ Additional recipes can be found on the [Contrib Recipes Repository](https://gith | [symfony/uid](https://packagist.org/packages/symfony/uid) | [6.2](symfony/uid/6.2) | `uid` | | [symfony/ux-autocomplete](https://packagist.org/packages/symfony/ux-autocomplete) | [2.6](symfony/ux-autocomplete/2.6) | `ux-autocomplete`, `uxautocomplete` | | [symfony/ux-live-component](https://packagist.org/packages/symfony/ux-live-component) | [2.6](symfony/ux-live-component/2.6) | `ux-live-component`, `uxlivecomponent` | +| [symfony/ux-translator](https://packagist.org/packages/symfony/ux-translator) | [2.7](symfony/ux-translator/2.7) | `ux-translator`, `uxtranslator` | | [symfony/validator](https://packagist.org/packages/symfony/validator) | [5.3](symfony/validator/5.3) | `validation`, `validator` | | [symfony/vonage-notifier](https://packagist.org/packages/symfony/vonage-notifier) | [5.4](symfony/vonage-notifier/5.4) | `vonage-notifier`, `vonagenotifier` | | [symfony/web-profiler-bundle](https://packagist.org/packages/symfony/web-profiler-bundle) | [6.1](symfony/web-profiler-bundle/6.1) | `web-profiler-bundle`, `webprofilerbundle` | diff --git a/archived/symfony.ux-translator/368d87bd6a1888d83b6b028692cdb09c2097f004.json b/archived/symfony.ux-translator/368d87bd6a1888d83b6b028692cdb09c2097f004.json new file mode 100644 index 00000000..0f80d8f0 --- /dev/null +++ b/archived/symfony.ux-translator/368d87bd6a1888d83b6b028692cdb09c2097f004.json @@ -0,0 +1,51 @@ +{ + "manifests": { + "symfony/ux-translator": { + "manifest": { + "bundles": { + "Symfony\\UX\\Translator\\TranslatorBundle": [ + "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": "368d87bd6a1888d83b6b028692cdb09c2097f004" + } + } +} diff --git a/index.json b/index.json index 8b9571d8..213ba18f 100644 --- a/index.json +++ b/index.json @@ -382,8 +382,10 @@ "ux": "symfony/webpack-encore-bundle", "ux-autocomplete": "symfony/ux-autocomplete", "ux-live-component": "symfony/ux-live-component", + "ux-translator": "symfony/ux-translator", "uxautocomplete": "symfony/ux-autocomplete", "uxlivecomponent": "symfony/ux-live-component", + "uxtranslator": "symfony/ux-translator", "validation": "symfony/validator", "validator": "symfony/validator", "var-dumper": "symfony/var-dumper", @@ -856,6 +858,9 @@ "2.0", "2.6" ], + "symfony/ux-translator": [ + "2.7" + ], "symfony/validator": [ "4.1", "4.3", diff --git a/symfony.ux-translator.2.7.json b/symfony.ux-translator.2.7.json new file mode 100644 index 00000000..0f80d8f0 --- /dev/null +++ b/symfony.ux-translator.2.7.json @@ -0,0 +1,51 @@ +{ + "manifests": { + "symfony/ux-translator": { + "manifest": { + "bundles": { + "Symfony\\UX\\Translator\\TranslatorBundle": [ + "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": "368d87bd6a1888d83b6b028692cdb09c2097f004" + } + } +}