Skip to content
Merged
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Next Next commit
Use LANG instead of LC_TIME to get default locale
To make compatible with Tizen 4.0
  • Loading branch information
swift-kim committed Feb 8, 2021
commit 32f518d596a9ea090dc7974ac0c23ca497078561
2 changes: 1 addition & 1 deletion shell/platform/tizen/channels/localization_channel.cc
Original file line number Diff line number Diff line change
Expand Up @@ -25,7 +25,7 @@ void LocalizationChannel::SendLocales() {
FlutterLocale* flutter_locale = nullptr;
std::vector<FlutterLocale*> flutter_locales;

int ret = i18n_ulocale_set_default(getenv("LC_TIME"));
int ret = i18n_ulocale_set_default(getenv("LANG"));
ret = i18n_ulocale_get_default(&defualt_locale);
if (ret != I18N_ERROR_NONE) {
FT_LOGE("i18n_ulocale_get_default() failed.");
Expand Down