karya-inc / KaryaAndroid-Features

2 stars 0 forks source link

Component Localization #28

Open thedroiddiv opened 1 week ago

thedroiddiv commented 1 week ago

Purpose/Description

Add support for Localization in all the components.

Proposed Approach

Any input to a component can be represented using a map of language codes to value. For example

{
    "data":{
        "prompt": {
            "EN":"Some prompt on English",
            "HI":"Some prompt on Hindi",
            "KN":"Some prompt on Kannada"
        }
    },
    "files": {
        "EN": "some_audio_in_english.wav",
        "HI": "some_audio_in_hindi.wav",
        "KN": "some_audio_in_kannada.wav"
    }
}
thedroiddiv commented 1 week ago

@SoumyaRanjanPatnaik @anuragshukla06 @criticalAY Thoughts?

SoumyaRanjanPatnaik commented 1 week ago

Does this also apply to files as well? We might need to localise audio/video as well for example.

SoumyaRanjanPatnaik commented 1 week ago

Also, what should be the ecosystem behaviour if the workers language is not available in a datapoint?

thedroiddiv commented 1 week ago

Also, what should be the ecosystem behaviour if the workers language is not available in a datapoint?

Datapoint will contain all the language resources. We'll download resources in the app's language. Fallback to english.