gpt4 book ai didi

javascript - ARB Ple 持有人不工作

转载 作者:太空宇宙 更新时间:2023-11-04 15:50:55 26 4
gpt4 key购买 nike

我正在使用 ARB google's API 进行本地化但实际上占位符不起作用,我花了 5 个小时来解决这个问题,但没有成功

arb.register(
"login",
{
"title": "Login",
"subtitle": "to your account",
"MSG_BODY_TEST": "This is a test.",
"email": "Email {0}",
"@email": {
"placeholders": {
"0": {
"example": "$123.45",
"description": "cost presented with currency symbol"
}
}
},
"MSG_CURR_LOCALE": "...and the selected language is \"{currentLocale}\"."

}

);

    arb.register(
"login:ar",
{
"title": "الدخول",
"subtitle": "الى حسابك",
"email": "البريد الاكتروني {0}",
"@email": {
"placeholders": {
"0": {
"example": "$123.45",
"description": "cost presented with currency symbol"
}
}
},
"MSG_CURR_LOCALE": "...and the selected language is \" {currentLocale}\"."
}

);

有人可以告诉我问题是什么吗?

最佳答案

好吧,尝试将 "email": "Email {0}" 替换为 "email@placeholder": "Email"

检查这个:reference

同时删除不需要的占位支架

关于javascript - ARB Ple 持有人不工作,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/43125951/

26 4 0
Copyright 2021 - 2024 cfsdn All Rights Reserved 蜀ICP备2022000587号
广告合作:1813099741@qq.com 6ren.com