Any library for pure code generation from i18n resource packages?

In my project, I would like to check the compile time of my existing resource package. I already have a set of localized files *.properties, and I'm going to connect them to some tool i18n. I thought about regular ResourceBundles, but I don’t like the fact that this mechanism does not guarantee any checks, nor compilation time, nor service checks, such as finding duplicates or searching for unused keys.

So, I'm looking for a library that will use my existing files *.propertiesand convert them into neat and clean Java code that I could use in my project.

The best possible outcome would be to have a mechanism similar to GWT i18n support. One clean interface with all messages as a separate method.

I looked through jlibs and ForgeRock . I really like jlibs, but this is not a separate library, so it’s hard for me to imagine how you imagine such a huge lib dependency for i18n only. ForgeRock does pretty much what I would like, but it creates constants, not pure interfaces for working, like jlibs.

This blog blog also helps to understand which approach I would like to use. I did a lot of research on the available i18n tools, I just can't find the “one” that best suits my needs.

Sincerely.

+5
4

, , . , .

. , c10n. , !

0

, , i18n-binder.

, gettext framework . , .

+1

, Java . , Java, . Java. Objective-C Swift .

0

I like JUnit. Not exactly what you are looking for, but by creating tests, you are sure that all the elements in the property files are available.

-1
source

All Articles