0
0
mirror of https://github.com/naturalcrit/homebrewery.git synced 2026-01-06 18:42:40 +00:00

add a few more language codes to datalist.

This commit is contained in:
Gazook89
2022-11-20 11:56:35 -06:00
parent c2d79bedb5
commit 0061040cb6

View File

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