mirror of
https://github.com/fluxerapp/fluxer
synced 2026-10-17 13:05:32 +09:00
fix(app,api): kick reasons, blocked counts and locale fallbacks (#3334)
This commit is contained in:
1 parent
a5c1362f4a
commit
4db13b0375
157 files changed
+3080
-1995
No files matched your search
@@ -7,6 +7,7 @@ import {
|
||||
type ContentI18nKey,
|
||||
} from '@app/api/content_i18n/ContentI18nMessages';
|
||||
import {identityLocale} from '@fluxer/i18n/src/normalization/IdentityLocale';
|
||||
import {compileMessage} from '@fluxer/i18n/src/runtime/CompileMessage';
|
||||
import {createStaticI18n} from '@fluxer/i18n/src/runtime/CreateStaticI18n';
|
||||
import type {MessageArgsForTemplate} from '@fluxer/i18n/src/runtime/MessageCatalogTypes';
|
||||
import {validateMessageTemplateVariables} from '@fluxer/i18n/src/runtime/MessageCatalogTypes';
|
||||
@@ -30,7 +31,7 @@ const contentI18n = createStaticI18n<ContentI18nKey, string, ContentI18nRuntimeV
|
||||
validateVariables: (_key, template, variables) => validateMessageTemplateVariables(template, variables),
|
||||
},
|
||||
(template, variables, mf) => {
|
||||
return String(mf.compile(template)(variables));
|
||||
return String(compileMessage(mf, template)(variables));
|
||||
},
|
||||
);
|
||||
|
||||
|
||||
Reference in new issue
Block a user