mirror of
https://github.com/Part-DB/Part-DB-server.git
synced 2026-03-19 21:59:00 +01:00
19 lines
588 B
JavaScript
19 lines
588 B
JavaScript
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;
|