MCPcopy Create free account
hub / github.com/cedaro/shiny-code / getLanguageSettings

Function getLanguageSettings

blocks/code/settings.js:16–24  ·  view source on GitHub ↗
( language )

Source from the content-addressed store, hash-verified

14}, {} );
15
16export const getLanguageSettings = ( language ) => {
17 const settings = Object.assign( {}, defaultLanguageSettings );
18
19 if ( language in languageSettings ) {
20 Object.assign( settings, languageSettings[ language ] );
21 }
22
23 return settings;
24};
25
26export const languageChoices = Object.keys( languages ).reduce( ( choices, key ) => {
27 choices.push( {

Callers 1

Calls

no outgoing calls

Tested by

no test coverage detected