MCPcopy
hub / github.com/ollm/OpenComic / changeLanguage

Function changeLanguage

scripts/dom.js:1815–1827  ·  view source on GitHub ↗
(lan)

Source from the content-addressed store, hash-verified

1813}
1814
1815function changeLanguage(lan)
1816{
1817 loadLanguage(lan);
1818
1819 template.contentRight('.language-list.active').removeClass('active');
1820 template.contentRight('.language-list-'+lan).addClass('active');
1821
1822 dom.loadIndexContentLeft(false);
1823 template.loadHeader('languages.header.html', false);
1824 storage.updateVar('config', 'language', lan);
1825
1826 gamepad.updateBrowsableItems(gamepad.currentKey());
1827}
1828
1829/* Page - Settings */
1830

Callers

nothing calls this directly

Calls 1

loadLanguageFunction · 0.85

Tested by

no test coverage detected