|
|
|
@ -28,14 +28,15 @@ namespace Service::NS {
|
|
|
|
|
SimplifiedChinese,
|
|
|
|
|
Count
|
|
|
|
|
};
|
|
|
|
|
using ApplicationLanguagePriorityList = const std::array<ApplicationLanguage, static_cast<std::size_t>(ApplicationLanguage::Count)>;
|
|
|
|
|
using ApplicationLanguagePriorityList =
|
|
|
|
|
const std::array<ApplicationLanguage, static_cast<std::size_t>(ApplicationLanguage::Count)>;
|
|
|
|
|
|
|
|
|
|
constexpr u32 GetSupportedLanguageFlag(const ApplicationLanguage lang) {
|
|
|
|
|
return 1u << static_cast<u32>(lang);
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
const ApplicationLanguagePriorityList* GetApplicationLanguagePriorityList(ApplicationLanguage lang);
|
|
|
|
|
std::optional<ApplicationLanguage> ConvertToApplicationLanguage(Service::Set::LanguageCode language_code);
|
|
|
|
|
std::optional<ApplicationLanguage> ConvertToApplicationLanguage(
|
|
|
|
|
Service::Set::LanguageCode language_code);
|
|
|
|
|
std::optional<Service::Set::LanguageCode> ConvertToLanguageCode(ApplicationLanguage lang);
|
|
|
|
|
}
|
|
|
|
|
} // namespace Service::NS
|