-
Notifications
You must be signed in to change notification settings - Fork 4
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #1248 from Gary-Community-Ventures/dev
Release 8/19/2024
- Loading branch information
Showing
6 changed files
with
110 additions
and
551 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,19 @@ | ||
import { ReactElement } from 'react'; | ||
import { Route } from 'react-router-dom'; | ||
import languageOptions from '../../Assets/languageOptions'; | ||
|
||
export default function languageRouteWrapper(children: ReactElement) { | ||
const languages = Object.keys(languageOptions); | ||
return ( | ||
<> | ||
{languages.map((language, key) => { | ||
return ( | ||
<Route path={`/${language}`} key={key}> | ||
{children} | ||
</Route> | ||
); | ||
})} | ||
{children} | ||
</> | ||
); | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,15 @@ | ||
import { FormattedMessage } from 'react-intl'; | ||
|
||
export const allNavigatorLanguages = { | ||
'en-us': <FormattedMessage id="navLanguage.en-us" defaultMessage="English Available" />, | ||
es: <FormattedMessage id="navLanguage.es" defaultMessage="Spanish Available" />, | ||
vi: <FormattedMessage id="navLanguage.vi" defaultMessage="Vietnamese Available" />, | ||
fr: <FormattedMessage id="navLanguage.fr" defaultMessage="French Available" />, | ||
am: <FormattedMessage id="navLanguage.am" defaultMessage="Amharic Available" />, | ||
so: <FormattedMessage id="navLanguage.so" defaultMessage="Somali Available" />, | ||
ru: <FormattedMessage id="navLanguage.ru" defaultMessage="Russian Available" />, | ||
ne: <FormattedMessage id="navLanguage.ne" defaultMessage="Nepali Available" />, | ||
my: <FormattedMessage id="navLanguage.my" defaultMessage="Burmese Available" />, | ||
zh: <FormattedMessage id="navLanguage.zh" defaultMessage="Chinese Available" />, | ||
ar: <FormattedMessage id="navLanguage.ar" defaultMessage="Arabic Available" />, | ||
}; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.