Skip to content

Commit f34d3ce

Browse files
committed
chore: missing doc
1 parent 00c3091 commit f34d3ce

1 file changed

Lines changed: 8 additions & 0 deletions

File tree

core/src/commonMain/kotlin/io/tolgee/api/TolgeeApi.kt

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -68,6 +68,14 @@ internal data object TolgeeApi {
6868
return decoded
6969
}
7070

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+
*/
7179
private suspend fun String.decodeTranslation(
7280
config: Tolgee.Config,
7381
language: String,

0 commit comments

Comments
 (0)