Grails 3 - i18n网址

时间:2016-12-28 22:16:12

标签: grails internationalization

我有一个问题如何处理grails中的国际化网址。我找到了一个解决方案,但我并不完全满意。

我有基于许可的自动化。

我的解决方案在这里:

GSP:

    name companyProfilesCz : "/firemni-profily"(
            controller: "companyProfiles",
    )
    name companyProfilesEn :"/companies"(
            controller: "companyProfiles",
    )

映射值存储在i18n包中。

地址映射:

Attributes Inspector

Permmisions:

我需要为每个国际化网址单独授予权限。

有更好的方法吗?有什么东西不需要为每个国际化的URL写单独的权限和url映射?

0 个答案:

没有答案