Skip to content

Commit ba9601b

Browse files
committed
Add recipe for @symfony/ux-translator
1 parent b62f492 commit ba9601b

File tree

3 files changed

+22
-0
lines changed

3 files changed

+22
-0
lines changed
Lines changed: 11 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,11 @@
1+
/*
2+
* This file is part of the Symfony UX Translator package.
3+
*
4+
* If folder "../var/translations" does not exist, or some translations are missing,
5+
* you must warmup your Symfony cache to refresh JavaScript translations.
6+
*
7+
* If you use TypeScript, you can rename this file to "translator.ts" to take advantage of types checking.
8+
*/
9+
10+
export { trans, getLocale } from '@symfony/ux-translator';
11+
export * from '../var/translations';
Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,3 @@
1+
ux_translator:
2+
# The directory where the JavaScript translations are dumped
3+
dump_directory: '%kernel.project_dir%/var/translations'
Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,8 @@
1+
{
2+
"bundles": {
3+
"Symfony\\UX\\Translator\\TranslatorBundle": ["all"]
4+
},
5+
"copy-from-recipe": {
6+
"assets/": "assets/"
7+
}
8+
}

0 commit comments

Comments
 (0)