Localization updating with jmix with Java Code

Is there a way to write with jmix to the localization files or do I have to do so with plain Java ?