Skip to content

Commit 0cfb1a9

Browse files
committed
Update i18n strings to include whitespace in file size exceeded messages for English and Chinese locales
1 parent b22c598 commit 0cfb1a9

File tree

3 files changed

+5
-2
lines changed

3 files changed

+5
-2
lines changed

src/locales/en.ts

+1-1
Original file line numberDiff line numberDiff line change
@@ -48,7 +48,7 @@ export default {
4848
'Failed to parse file `update.json`. Try to remove it manually.',
4949
fileGenerated: '{{- file}} generated.',
5050
fileSizeExceeded:
51-
'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}}',
51+
'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}}',
5252
hermesDisabled: 'Hermes disabled',
5353
hermesEnabledCompiling: 'Hermes enabled, now compiling to hermes bytecode:\n',
5454
ipaUploadSuccess:

src/locales/zh.ts

+1-1
Original file line numberDiff line numberDiff line change
@@ -46,7 +46,7 @@ export default {
4646
failedToParseUpdateJson: '无法解析文件 `update.json`。请手动删除它。',
4747
fileGenerated: '已生成 {{- file}}',
4848
fileSizeExceeded:
49-
'此文件大小 {{fileSize}} , 超出当前额度 {{maxSize}} 。您可以考虑升级付费业务以提升此额度。详情请访问: {{pricingPageUrl}}',
49+
'此文件大小 {{fileSize}} , 超出当前额度 {{maxSize}} 。您可以考虑升级付费业务以提升此额度。详情请访问: {{- pricingPageUrl}}',
5050
hermesDisabled: 'Hermes 已禁用',
5151
hermesEnabledCompiling: 'Hermes 已启用,正在编译为 hermes 字节码:\n',
5252
ipaUploadSuccess:

src/utils/i18n.ts

+3
Original file line numberDiff line numberDiff line change
@@ -15,6 +15,9 @@ i18next.init({
1515
translation: zh,
1616
},
1717
},
18+
interpolation: {
19+
escapeValue: false,
20+
},
1821
});
1922

2023
declare module 'i18next' {

0 commit comments

Comments
 (0)