Skip to content

Commit edb73d8

Browse files
committed
recipes:update ux-translation
1 parent a796886 commit edb73d8

File tree

2 files changed

+10
-8
lines changed

2 files changed

+10
-8
lines changed

ux.symfony.com/assets/translator.js

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,5 @@
1+
import { localeFallbacks } from '@app/translations/configuration';
2+
import { trans, getLocale, setLocale, setLocaleFallbacks } from '@symfony/ux-translator';
13
/*
24
* This file is part of the Symfony UX Translator package.
35
*
@@ -7,10 +9,8 @@
79
* If you use TypeScript, you can rename this file to "translator.ts" to take advantage of types checking.
810
*/
911

10-
import { trans, getLocale, setLocale, setLocaleFallbacks } from '@symfony/ux-translator';
11-
import { localeFallbacks } from '@app/translations/configuration';
12-
1312
setLocaleFallbacks(localeFallbacks);
1413

15-
export { trans, setLocale };
16-
export * from '@app/translations';
14+
export { trans };
15+
16+
export * from '@app/translations';

ux.symfony.com/symfony.lock

Lines changed: 5 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -597,12 +597,14 @@
597597
"recipe": {
598598
"repo": "github.com/symfony/recipes",
599599
"branch": "main",
600-
"version": "2.7",
601-
"ref": "368d87bd6a1888d83b6b028692cdb09c2097f004"
600+
"version": "2.9",
601+
"ref": "bc396565cc4cab95692dd6df810553dc22e352e1"
602602
},
603603
"files": [
604604
"assets/translator.js",
605-
"config/packages/ux_translator.yaml"
605+
"config/packages/ux_translator.yaml",
606+
"var/translations/configuration.js",
607+
"var/translations/index.js"
606608
]
607609
},
608610
"symfony/ux-turbo": {

0 commit comments

Comments
 (0)