All Downloads are FREE. Search and download functionalities are using the official Maven repository.

ru.pocketbyte.locolaser.properties.resource.file.provider.PropertiesResourceFileProvider.kt Maven / Gradle / Ivy

package ru.pocketbyte.locolaser.properties.resource.file.provider

import ru.pocketbyte.locolaser.config.resources.ResourceFileProvider
import ru.pocketbyte.locolaser.resource.Resources
import java.io.File

internal object PropertiesResourceFileProvider : ResourceFileProvider {
    override fun get(locale: String, directory: File, name: String, extension: String): File {
        return if (locale == Resources.BASE_LOCALE) {
            File(directory, "$name.$extension")
        } else {
            File(directory, "${name}_$locale.$extension")
        }
    }
}




© 2015 - 2025 Weber Informatics LLC | Privacy Policy