There was an error while loading. Please reload this page.
1 parent 00c3091 commit f34d3ceCopy full SHA for f34d3ce
1 file changed
core/src/commonMain/kotlin/io/tolgee/api/TolgeeApi.kt
@@ -68,6 +68,14 @@ internal data object TolgeeApi {
68
return decoded
69
}
70
71
+ /**
72
+ * Decodes a localization file's content in JSON format into a `TolgeeTranslation` object.
73
+ *
74
+ * @param config The configuration object used for content delivery and formatting.
75
+ * @param language The language code for the language being processed.
76
+ * @return A `TolgeeTranslation` object containing parsed keys and translations, or `null`
77
+ * if the decoding process fails or the input is invalid.
78
+ */
79
private suspend fun String.decodeTranslation(
80
config: Tolgee.Config,
81
language: String,
0 commit comments