MCPcopy
hub / github.com/YILS-LIN/short-video-factory / changeAppLanguage

Function changeAppLanguage

electron/i18n/index.ts:37–42  ·  view source on GitHub ↗
(lng: string)

Source from the content-addressed store, hash-verified

35}
36
37export const changeAppLanguage = async (lng: string) => {
38 await i18next.changeLanguage(lng)
39 BrowserWindow.getAllWindows().forEach((win) => {
40 win.webContents.send('i18n-changeLanguage', lng)
41 })
42}

Callers 2

buildMenuFunction · 0.90
initI18nFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected