Skip to content

Commit

Permalink
feat: update translations
Browse files Browse the repository at this point in the history
  • Loading branch information
wwills2 committed Nov 8, 2024
1 parent 4c8dc2c commit a6b1d5e
Show file tree
Hide file tree
Showing 3 changed files with 7 additions and 1 deletion.
2 changes: 2 additions & 0 deletions src/renderer/App.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -64,6 +64,8 @@ function App() {
}
};

useEffect(() => notifyParentOfAppLoad(), []);

useEffect(() => {
if (appStore.locale) {
setTranslationTokens(loadLocaleData(appStore.locale));
Expand Down
2 changes: 2 additions & 0 deletions src/renderer/translations/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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;
}
Expand Down
4 changes: 3 additions & 1 deletion src/renderer/translations/tokens/en-US.json
Original file line number Diff line number Diff line change
Expand Up @@ -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"
}

0 comments on commit a6b1d5e

Please sign in to comment.