//MetaPhrase/com.github.diegoberaldin.metaphrase.domain.project.persistence.dao/DefaultSegmentDao/getByKey
getByKey
[jvm]
open suspend override 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 |