6 lines
141 B
React
6 lines
141 B
React
|
export default function localeCode2Text(code) {
|
||
|
return new Intl.DisplayNames(navigator.languages, {
|
||
|
type: 'language',
|
||
|
}).of(code);
|
||
|
}
|