流星帐户.ui本地化 [英] Meteor accounts.ui localization

查看:69
本文介绍了流星帐户.ui本地化的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我正在学习使用流星.

I'm learning to use meteor.

是否可以轻松地本地化account.ui组件?

Is it possible to easily localize accounts.ui components?

推荐答案

这是一个有点棘手的解决方案,您可以删除拥有的accounts-ui软件包并手动添加.在流星的 github repo <上找到accounts-ui分支/a>并找到accounts-ui包中的所有内容,例如:login_buttons_dialogs.html,login_buttons.html等.

This is a slightly hacky solution, you could remove the accounts-ui package you have and add it in manually. Find the accounts-ui branch on meteor's github repo and find all the contents in the accounts-ui package such as: login_buttons_dialogs.html, login_buttons.html, etc.

然后,您可以使用所需的自定义文本直接使用所需的语言来编辑这些文件并将其复制到您的流星项目中.

You could then edit and copy these files into your meteor project directly with the custom text in the language you would like.

流星尚未实施国际化,但已列入路线图.您可以做的是使用 meteorite 并安装与手动编辑的本地化软件包(如simple-i18n) accounts-ui文件可为您的用户提供多语言体验,或仅提供其他语言的用户界面.

Meteor hasn't implemented internationalization but its on the roadmap. What you could do is use meteorite and install a localization package such as simple-i18n in conjunction with the manually edited accounts-ui files to give your users a multi-lingual experience or simply offer accounts-ui in a different language.

这篇关于流星帐户.ui本地化的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆