【发布时间】:2015-04-28 09:51:33
【问题描述】:
我有一个 helpers/config.js
Accounts.ui.config({
});
在玩了几个小时并搜索之后,我一直无法找到更改顶部引导导航中生成的 tex SIGNIN/JOIN 的方法。
如何以正确的方式做到这一点?
【问题讨论】:
标签: meteor meteor-accounts meteor-helper
我有一个 helpers/config.js
Accounts.ui.config({
});
在玩了几个小时并搜索之后,我一直无法找到更改顶部引导导航中生成的 tex SIGNIN/JOIN 的方法。
如何以正确的方式做到这一点?
【问题讨论】:
标签: meteor meteor-accounts meteor-helper
这个包使用anti:i18n,如下所示:
https://github.com/ianmartorell/meteor-accounts-ui-bootstrap-3/blob/master/package.js#L15
所以你可以做的只是覆盖那里声明的默认 i18n 字符串:
https://github.com/ianmartorell/meteor-accounts-ui-bootstrap-3/blob/master/i18n/en.i18n.js#L25
我从未使用过anti:i18n,但我认为在你的应用程序中添加这段代码应该可以解决问题:
i18n.map("en",{
loginButtonsLoggedOutDropdown: {
signIn: "YOUR SIGN IN TEXT",
up: "YOUR JOIN TEXT"
}
});
您还需要使用此命令将包添加到您的应用:
meteor add anti:i18n
这是因为即使该包是ian:accounts-ui-bootstrap-3的依赖项,您也不能在您的应用程序中访问它,您必须明确将其列为您的应用程序的依赖项。
【讨论】: