如何使用 FastGettext 将一个字符串从一种语言环境转换为另一种语言环境?
我在 Rails 应用程序中使用 FastGettext 。
我需要将一个特定的字符串转换为应用程序中的每个 FastGettext.available_locales
。
怎么做呢?
PS:我也找不到 I18n 的解决方案。(参见下面的答案)
I use FastGettext in my Rails application.
I need a particular string translated into every single FastGettext.available_locales
in my application.
How to do that?
PS: I couldn't find the solution with I18n either. (see answer below)
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(1)
在我看来,你可以用 I18n 做类似的事情:
It seems to me that you can do something like that with I18n :