ru.pocketbyte.locolaser.gettext.resource.file.provider.GetTextResourceFileProvider.kt Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of resource-gettext Show documentation
Show all versions of resource-gettext Show documentation
Implementation of platform for LocoLaser tool to work with gettext resources.
package ru.pocketbyte.locolaser.gettext.resource.file.provider
import ru.pocketbyte.locolaser.config.resources.ResourceFileProvider
import java.io.File
internal class GetTextResourceFileProvider : ResourceFileProvider {
override fun get(locale: String, directory: File, name: String, extension: String): File {
return File(File(directory, "$locale/LC_MESSAGES/"), "$name.$extension")
}
}