MetaPhrase

An open source translation editor for native mobile app localization.

View project on GitHub

//MetaPhrase/com.github.diegoberaldin.metaphrase.feature.translate.panel.memory.ui/BrowseMemoryTopControls

BrowseMemoryTopControls

[jvm]\

@Composable

fun BrowseMemoryTopControls(sourceLanguage: LanguageModel? = null, availableSourceLanguages: List<LanguageModel> = emptyList(), targetLanguage: LanguageModel? = null, availableTargetLanguages: List<LanguageModel> = emptyList(), currentSearch: String = "", onSourceLanguageSelected: (LanguageModel) -> Unit, onTargetLanguageSelected: (LanguageModel) -> Unit, onSearchChanged: (String) -> Unit, onSearchFired: () -> Unit)

Top controls for the TM content panel.

Return

Parameters

jvm

   
sourceLanguage Source language
availableSourceLanguages Available source languages
targetLanguage Target language
availableTargetLanguages Available target languages
currentSearch Current search query
onSourceLanguageSelected On source language selected callback
onTargetLanguageSelected On target language selected callback
onSearchChanged On search changed callback
onSearchFired On search fired callback