MetaPhrase

An open source translation editor for native mobile app localization.

View project on GitHub

//MetaPhrase/com.github.diegoberaldin.metaphrase.domain.project.persistence.dao/SegmentDao/getByKey

getByKey

[jvm]
abstract suspend fun getByKey(key: String, languageId: Int): SegmentModel?

Get a segment by key given its language within a project. There can only be at most one segment with a given key for any given language (compound index).

Return

SegmentModel or null

Parameters

jvm

   
key segment key
languageId Language ID