mirror of
https://github.com/mue/mue.git
synced 2026-07-20 23:44:07 +02:00
fix: localised language display name in item info
- Inconstiency within Turkish translation file
This commit is contained in:
@@ -128,7 +128,9 @@ class Item extends PureComponent {
|
||||
);
|
||||
|
||||
const locale = localStorage.getItem('language');
|
||||
let languageNames = new Intl.DisplayNames(["en"], { type: "language" });
|
||||
console.log(locale);
|
||||
const shortLocale = locale.includes('_') ? locale.split('_')[0] : locale;
|
||||
let languageNames = new Intl.DisplayNames([shortLocale], { type: "language" });
|
||||
|
||||
return (
|
||||
<div id="item">
|
||||
|
||||
Reference in New Issue
Block a user