I18nUtils

object I18nUtils

Localization utils and extension functions to get project specific localized strings and quantity strings.

Functions

Link copied to clipboard

Resolve a project specific resource id for the current checked in project.

Link copied to clipboard

Resolve a project specific resource id with a project reference.

Resolve a project specific resource id with its project id.

Link copied to clipboard
fun Resources.getQuantityStringForProject(project: Project?, id: Int, quantity: Int, vararg args: Any?): String

Extension function to get a project specific quantity string with a project reference.

fun Resources.getQuantityStringForProject(projectId: String?, id: Int, quantity: Int, vararg args: Any?): String

Extension function to get a project specific quantity string with its id.

Link copied to clipboard
Link copied to clipboard
fun Resources.getStringForProject(project: Project?, id: Int, vararg args: Any?): String

Extension function to get a project specific string with a project reference.

fun Resources.getStringForProject(projectId: String?, id: Int, vararg args: Any?): String

Extension function to get a project specific string with its id.