我已经设置了tap-i18n来本地化我的流星应用程序。我能够本地化html模板页面。但是,当我尝试本地化帐户包字符串时,它无法正常工作。
这就是我想要的 -
AccountsTemplates.configure({
defaultLayout: 'emptyLayout',
confirmPassword: false,
showLabels: false,
showPlaceholders: true,
negativeValidation: true,
positiveValidation: true,
negativeFeedback: true,
positiveFeedback: false,
onSubmitHook: onFormSubmission,
preSignUpHook: preSignup,
sendVerificationEmail: true,
enforceEmailVerification: true,
texts: {
'navSignIn': 'Sign in',
'signUpLink_pre': TAPi18n.__('not_member'),
'signUpLink_link': 'Register now',
title: {
'signUp': 'Register with Us'
}
}
});
您可以看到'signUpLink_pre': TAPi18n.__('not_member')
。但在UI中,我看到'not_member'
这是语言环境文件 -
{ "not_member":"Not a member yet?" }