mirror of
https://github.com/fluxerapp/fluxer
synced 2026-10-17 21:15:32 +09:00
fix(i18n): review translations and fix i18n library misuse (#2750)
This commit is contained in:
1 parent
78f783f0c4
commit
8cb097f954
575 files changed
+192671
-160540
No files matched your search
@@ -1,6 +1,8 @@
|
||||
// SPDX-License-Identifier: AGPL-3.0-or-later
|
||||
|
||||
import {PRODUCT_NAME} from '@app/features/app/config/I18nDisplayConstants';
|
||||
import {getCurrentLocale} from '@app/features/user/utils/LocaleUtils';
|
||||
import {formatNumber} from '@pkgs/number_utils/src/NumberFormatting';
|
||||
import {useEffect, useRef} from 'react';
|
||||
|
||||
const TITLE_PREFIX = PRODUCT_NAME;
|
||||
@@ -35,7 +37,7 @@ const buildDocumentTitle = (parts: Array<string>): string => {
|
||||
};
|
||||
const applyBadgePrefix = (baseTitle: string, badge: BadgeState): string => {
|
||||
if (badge.mentionCount > 0) {
|
||||
return `(${badge.mentionCount}) ${baseTitle}`;
|
||||
return `(${formatNumber(badge.mentionCount, getCurrentLocale())}) ${baseTitle}`;
|
||||
}
|
||||
if (badge.hasUnread) {
|
||||
return `• ${baseTitle}`;
|
||||
|
||||
Reference in new issue
Block a user