Use symfony/ux-translator to translate password_strength_estimator badges

This commit is contained in:
Jan Böhmer 2023-06-28 16:00:11 +02:00
parent bfd82fb415
commit ce064a0b37
15 changed files with 269 additions and 601 deletions

16
assets/translator.js Normal file
View file

@ -0,0 +1,16 @@
import { localeFallbacks } from '../var/translations/configuration';
import { trans, getLocale, setLocale, setLocaleFallbacks } from '@symfony/ux-translator';
/*
* 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.
*/
setLocaleFallbacks(localeFallbacks);
export { trans };
export * from '../var/translations';