mirror of
https://github.com/Part-DB/Part-DB-server.git
synced 2026-01-22 01:59:34 +00:00
Remove frontend-only translations from messages domain and set frontend as default domain
Co-authored-by: jbtronics <5410681+jbtronics@users.noreply.github.com>
This commit is contained in:
parent
f503251689
commit
c7c10a888f
16 changed files with 13 additions and 430 deletions
|
|
@ -15,4 +15,7 @@ const translator = createTranslator({
|
|||
localeFallbacks,
|
||||
});
|
||||
|
||||
export const { trans } = translator;
|
||||
// Wrapper function with default domain set to 'frontend'
|
||||
export const trans = (id, parameters = {}, domain = 'frontend', locale = null) => {
|
||||
return translator.trans(id, parameters, domain, locale);
|
||||
};
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue