0
0
mirror of https://github.com/naturalcrit/homebrewery.git synced 2025-12-26 07:22:44 +00:00

add a few language tags with subtags

This commit is contained in:
Gazook89
2022-11-20 22:20:22 -06:00
parent a16f12546a
commit d4b803205e

View File

@@ -247,7 +247,7 @@ const MetadataEditor = createClass({
},
renderLanguageDropdown : function(){
const langCodes = ['en', 'de', 'fr', 'ja', 'es', 'it', 'sv', 'ru', 'zh'];
const langCodes = ['en', 'de', 'de-ch', 'fr', 'ja', 'es', 'it', 'sv', 'ru', 'zh-Hans', 'zh-Hant'];
const listLanguages = ()=>{
return _.map(langCodes.sort(), (code, index)=>{
const languageNames = new Intl.DisplayNames([code], { type: 'language' });