0

Is there a Gem that stores translations in one table like CakePHP does?

The polymorphic CakePHP i18n-table has the following structure:

id
locale
model
foreign_key
field
content

Globalize3 i.e. uses a new table for each model translation which I find too redundant.

4

1 回答 1

1

您可以将各种后端添加到通常为 ruby​​ 提供国际化的 i18n gem。Globalize3 是一种选择。一个更轻量级的替代方案可能是i18n-active_record,它使用类似于您的 CakePHP 示例的单个表。

于 2012-06-04T16:31:58.773 回答