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

ru.pocketbyte.locolaser.mobile.resource.file.provider.IosResourceFileProvider.kt Maven / Gradle / Ivy

Go to download

Implementation of platform for LocoLaser tool to work with Android and iOS platforms.

There is a newer version: 2.5.0
Show newest version
package ru.pocketbyte.locolaser.mobile.resource.file.provider

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

internal object IosResourceFileProvider : ResourceFileProvider {
    override fun get(locale: String, directory: File, name: String, extension: String): File {
        val localeDir = StringBuilder()
        if (Resources.BASE_LOCALE == locale)
            localeDir.append("Base")
        else
            localeDir.append(locale)
        localeDir.append(".lproj")

        return File(File(directory, localeDir.toString()), "$name.$extension")
    }
}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy