MCPcopy Index your code
hub / github.com/nukeop/nuclear / initLanguageWatcher

Function initLanguageWatcher

packages/player/src/services/languageService.ts:16–22  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

14};
15
16export const initLanguageWatcher = () => {
17 coreSettingsHost.subscribe('general.language', (value) => {
18 if (value && typeof value === 'string') {
19 void changeLanguage(value);
20 }
21 });
22};

Callers 1

initPlayerAppFunction · 0.90

Calls 2

changeLanguageFunction · 0.85
subscribeMethod · 0.45

Tested by

no test coverage detected