MCPcopy Create free account
hub / github.com/OpenRaiser/PaperFlow / setLocale

Function setLocale

deployments/desktop/static/desktop.js:1470–1480  ·  view source on GitHub ↗
(locale)

Source from the content-addressed store, hash-verified

1468 }
1469
1470 function setLocale(locale) {
1471 if (!supportedLocales.has(locale) || state.locale === locale) return;
1472 const profileDraft = captureProfileDraft();
1473 state.locale = locale;
1474 window.localStorage.setItem(LOCALE_KEY, state.locale);
1475 applyLocale();
1476 if (state.currentProfile) {
1477 renderProfileForm(state.currentProfile);
1478 restoreProfileDraft(profileDraft);
1479 }
1480 }
1481
1482 function captureProfileDraft() {
1483 const ids = [

Callers 1

bindEventsFunction · 0.85

Calls 4

captureProfileDraftFunction · 0.85
applyLocaleFunction · 0.85
renderProfileFormFunction · 0.85
restoreProfileDraftFunction · 0.85

Tested by

no test coverage detected