From 0cfb1a9bebb1a69d9c14a5f20aab21bbf4f1bf28 Mon Sep 17 00:00:00 2001 From: sunnylqm Date: Wed, 23 Apr 2025 20:55:33 +0800 Subject: [PATCH] Update i18n strings to include whitespace in file size exceeded messages for English and Chinese locales --- src/locales/en.ts | 2 +- src/locales/zh.ts | 2 +- src/utils/i18n.ts | 3 +++ 3 files changed, 5 insertions(+), 2 deletions(-) diff --git a/src/locales/en.ts b/src/locales/en.ts index 19d7f68..b180b85 100644 --- a/src/locales/en.ts +++ b/src/locales/en.ts @@ -48,7 +48,7 @@ export default { 'Failed to parse file `update.json`. Try to remove it manually.', fileGenerated: '{{- file}} generated.', fileSizeExceeded: - 'This file size is {{fileSize}} , exceeding the current quota {{maxSize}} . You may consider upgrading to a higher plan to increase this quota. Details can be found at: {{pricingPageUrl}}', + 'This file size is {{fileSize}} , exceeding the current quota {{maxSize}} . You may consider upgrading to a higher plan to increase this quota. Details can be found at: {{- pricingPageUrl}}', hermesDisabled: 'Hermes disabled', hermesEnabledCompiling: 'Hermes enabled, now compiling to hermes bytecode:\n', ipaUploadSuccess: diff --git a/src/locales/zh.ts b/src/locales/zh.ts index 8108ec5..a5f9fbb 100644 --- a/src/locales/zh.ts +++ b/src/locales/zh.ts @@ -46,7 +46,7 @@ export default { failedToParseUpdateJson: '无法解析文件 `update.json`。请手动删除它。', fileGenerated: '已生成 {{- file}}', fileSizeExceeded: - '此文件大小 {{fileSize}} , 超出当前额度 {{maxSize}} 。您可以考虑升级付费业务以提升此额度。详情请访问: {{pricingPageUrl}}', + '此文件大小 {{fileSize}} , 超出当前额度 {{maxSize}} 。您可以考虑升级付费业务以提升此额度。详情请访问: {{- pricingPageUrl}}', hermesDisabled: 'Hermes 已禁用', hermesEnabledCompiling: 'Hermes 已启用,正在编译为 hermes 字节码:\n', ipaUploadSuccess: diff --git a/src/utils/i18n.ts b/src/utils/i18n.ts index e2b09e9..79c3a69 100644 --- a/src/utils/i18n.ts +++ b/src/utils/i18n.ts @@ -15,6 +15,9 @@ i18next.init({ translation: zh, }, }, + interpolation: { + escapeValue: false, + }, }); declare module 'i18next' {