Skip to content

Commit ff2acd3

Browse files
committed
Fix two places that weren't using base url
1 parent ebb3617 commit ff2acd3

File tree

2 files changed

+5
-1
lines changed

2 files changed

+5
-1
lines changed

src/i18n/config.ts

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -47,6 +47,10 @@ i18n
4747
interpolation: {
4848
escapeValue: false,
4949
},
50+
backend: {
51+
// Path to the translation files
52+
loadPath: import.meta.env.BASE_URL + "locales/{{lng}}/{{ns}}.json",
53+
},
5054
});
5155

5256
export default i18n;

src/reactComponents/Header.tsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -87,7 +87,7 @@ export default function Header(props: HeaderProps): React.JSX.Element {
8787
<img
8888
height={LOGO_HEIGHT}
8989
style={{objectFit: 'contain'}}
90-
src={isDarkTheme ? "/FIRST_HorzRGB_reverse.png" : "/FIRST_HorzRGB.png"}
90+
src={import.meta.env.BASE_URL + (isDarkTheme ? "/FIRST_HorzRGB_reverse.png" : "/FIRST_HorzRGB.png")}
9191
alt="FIRST Logo"
9292
/>
9393
<Antd.Typography

0 commit comments

Comments
 (0)