TextPlaceholderSDK

data class TextPlaceholderSDK(translations: Map<String, String> = emptyMap())

Dynamic TextPlaceholderSDK that supports ANY language from server without hardcoded fields. This works like iOS - fully dynamic based on server response.

Constructors

Link copied to clipboard
constructor(translations: Map<String, String> = emptyMap())

Functions

Link copied to clipboard
fun get(languageCode: String): String?

Get translation for a specific language code

Link copied to clipboard

Get all available language codes

Link copied to clipboard
fun getWithFallback(languageCode: String): String?

Get translation with fallback to English

Link copied to clipboard
fun hasLanguage(languageCode: String): Boolean

Check if a language is supported

Link copied to clipboard
open override fun toString(): String

Debug info

Link copied to clipboard

Convert dynamic TextPlaceholderSDK to Map for backward compatibility. Now supports ANY language dynamically without hardcoded fields!