diff --git a/src/renderer/App.tsx b/src/renderer/App.tsx index a06b3fa..6203772 100644 --- a/src/renderer/App.tsx +++ b/src/renderer/App.tsx @@ -64,6 +64,8 @@ function App() { } }; + useEffect(() => notifyParentOfAppLoad(), []); + useEffect(() => { if (appStore.locale) { setTranslationTokens(loadLocaleData(appStore.locale)); diff --git a/src/renderer/translations/index.ts b/src/renderer/translations/index.ts index 06e52b9..51466ab 100644 --- a/src/renderer/translations/index.ts +++ b/src/renderer/translations/index.ts @@ -10,7 +10,9 @@ const LANGUAGE_CODES = Object.freeze({ const loadLocaleData = (locale: string) => { switch (locale) { case LANGUAGE_CODES.ENGLISH_US: + return en; case LANGUAGE_CODES.ENGLISH: + return en; default: return en; } diff --git a/src/renderer/translations/tokens/en-US.json b/src/renderer/translations/tokens/en-US.json index 1fc0c1d..490a17c 100644 --- a/src/renderer/translations/tokens/en-US.json +++ b/src/renderer/translations/tokens/en-US.json @@ -91,5 +91,7 @@ "search-by-beneficiary-information": "search by beneficiary information", "failed-to-load-organizations": "failed to load organizations", "climate-activity-exploration": "climate activity exploration", - "please-select-a-climate-registry-to-view-activity": "please select a climate registry to view activity" + "please-select-a-climate-registry-to-view-activity": "please select a climate registry to view activity", + "cannot-connect-to-registry-api-with-current-settings": "Cannot connect to registry API with current settings", + "please-disconnect-to-edit-the-api-url-and-api-key": "Please disconnect to edit the API URL and API key" } \ No newline at end of file