Commit 4a8bdb14 by RedwindA

fix(i18n): disable namespace separator to fix URL display in translations

i18next uses ':' as namespace separator by default, causing URLs like
'https://api.openai.com' to be incorrectly parsed as namespace 'https'
with key '//api.openai.com', resulting in truncated display.

Setting nsSeparator to false fixes this issue since the project doesn't
use multiple namespaces.
parent 225cb9ef
...@@ -42,6 +42,7 @@ i18n ...@@ -42,6 +42,7 @@ i18n
vi: viTranslation, vi: viTranslation,
}, },
fallbackLng: 'zh', fallbackLng: 'zh',
nsSeparator: false,
interpolation: { interpolation: {
escapeValue: false, escapeValue: false,
}, },
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or sign in to comment