samples/outside-shell/translations.js
// Translate based on translations for the provided language key 
Translate based on translations for the provided language key
Translate based on translations for the provided language key
function translate(lang) {
  const I18N = getTranslation(lang);
  for (const [key, value] of Object.entries(I18N)) {
    document.getElementById(`${key}`).innerHTML = `${value}`;
  }
}
function translate ( lang ) { const I18N = getTranslation ( lang ) ; for ( const [ key , value ] of Object . entries ( I18N ) ) { document . getElementById ( ` ${ key } ` ) . innerHTML = ` ${ value } ` ; } }
Translate based on translations for the provided language key
Translate based on translations for the provided language key