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:
@@ -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' });
|
||||||
|
|||||||
Reference in New Issue
Block a user