Reason:
Currently, locale selection is done automatically, based on the user's language settings on a specific device. The default locale is English. Since the application and the server support only Russian and English locales so far, for users from CIS countries (such as Ukrainians) who have a national locale selected on their device, it is more convenient to force the selection of Russian instead of English by default.
Implementation:
Location and route repositories use currentLocale property as default locale.
First, implement UI action view for change locale in the platform-specific modules.
Next, implement selection handling and retention. If necessary, add additional locales to ru.z8.louttsev.cheaptripmobile.shared.model.data.Locale to continue using Locale.fromLanguageCode() for convert from ISO 639-1 language code.
Finally, change the actual getter's implementation in file System.kt the platform-specific modules to use the saved setting as the current locale.
Reason: Currently, locale selection is done automatically, based on the user's language settings on a specific device. The default locale is English. Since the application and the server support only Russian and English locales so far, for users from CIS countries (such as Ukrainians) who have a national locale selected on their device, it is more convenient to force the selection of Russian instead of English by default.
Implementation: Location and route repositories use
currentLocale
property as default locale.First, implement UI action view for change locale in the platform-specific modules.
Next, implement selection handling and retention. If necessary, add additional locales to
ru.z8.louttsev.cheaptripmobile.shared.model.data.Locale
to continue using Locale.fromLanguageCode() for convert from ISO 639-1 language code.Finally, change the actual getter's implementation in file System.kt the platform-specific modules to use the saved setting as the current locale.