mirror of
https://github.com/AsamK/signal-cli
synced 2025-08-29 18:40:39 +00:00
parent
d1ccd11fcb
commit
6bdfa11b66
1 changed files with 3 additions and 0 deletions
|
@ -76,6 +76,9 @@ public class Utils {
|
|||
|
||||
public static Locale getDefaultLocale() {
|
||||
final var locale = Locale.getDefault();
|
||||
if (locale == null) {
|
||||
return null;
|
||||
}
|
||||
try {
|
||||
Locale.LanguageRange.parse(locale.getLanguage() + "-" + locale.getCountry());
|
||||
} catch (IllegalArgumentException e) {
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue