Skip to content

Commit

Permalink
Add ability to override the general translations.
Browse files Browse the repository at this point in the history
  • Loading branch information
elenm committed Jun 11, 2021
1 parent 8155313 commit ecb9b59
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions sites/public/pages/_app.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -36,6 +36,9 @@ function BloomApp({ Component, router, pageProps }: AppProps) {

useMemo(() => {
addTranslation(translations.general, true)
if (overrideTranslations["general"]) {
addTranslation(overrideTranslations.general)
}
if (locale && locale !== "en" && translations[locale]) {
addTranslation(translations[locale])
if (overrideTranslations[locale]) {
Expand Down

0 comments on commit ecb9b59

Please sign in to comment.