Meteor tap-i18n:如何本地化帐户包(js)?

时间:2017-12-29 14:19:54

标签: meteor meteor-blaze meteor-accounts

我已经设置了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?" }

0 个答案:

没有答案