Skip to content

Commit 4e602bb

Browse files
authored
Merge pull request #261 from IFRCGo/fix/translation-key-namespace
Use page_name and key from the server
2 parents 25a6f4b + 75b00b5 commit 4e602bb

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

src/views/RootLayout/index.tsx

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -78,13 +78,13 @@ export function Component() {
7878
const stringMap = mapToMap(
7979
listToGroupList(
8080
response.strings,
81-
({ key }) => key.split(':')[0],
81+
({ page_name }) => page_name ?? 'common',
8282
),
8383
(key) => key,
8484
(values) => (
8585
listToMap(
8686
values,
87-
({ key }) => key.split(':')[1],
87+
({ key }) => key,
8888
({ value }) => value,
8989
)
9090
),

0 commit comments

Comments
 (0)