replace ambiguous names with clearer names

This commit is contained in:
MaysWind
2026-01-30 23:35:37 +08:00
parent 32f2eaef3c
commit b470cb63b7
22 changed files with 732 additions and 740 deletions
+2 -2
View File
@@ -662,7 +662,7 @@ export function useI18n() {
function getLocalizedDateTimeFormat<T extends DateFormat | TimeFormat>(type: string, allFormatMap: Record<string, T>, allFormatArray: T[], formatTypeValue: number, languageDefaultTypeNameKey: string, systemDefaultFormatType: T): string {
const formatType = getLocalizedDateTimeType(allFormatMap, allFormatArray, formatTypeValue, languageDefaultTypeNameKey, systemDefaultFormatType);
return t(`format.${type}.${formatType.key}`);
return t(`format.${type}.${formatType.typeName}`);
}
function getLocalizedLongDateFormat(): string {
@@ -1079,7 +1079,7 @@ export function useI18n() {
});
for (const formatType of allFormatArray) {
const format = t(`format.${type}.${formatType.key}`);
const format = t(`format.${type}.${formatType.typeName}`);
ret.push({
type: formatType.type,