Skip to content

Commit 242f8a1

Browse files
committed
"placeholder" for unready ptbr translations parts
1 parent 10c7cf5 commit 242f8a1

File tree

1 file changed

+5
-0
lines changed

1 file changed

+5
-0
lines changed

src/utils/getPartTranslationPath.js

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,9 @@
11
const getPartTranslationPath = (language, part, path = '') => {
2+
// while the ptbr translation are not complete, return the URL for english version
3+
if (language === 'ptbr' && part >= 4) {
4+
// parts 0-3 are done. For part 4 onward, this will return the english version
5+
return `/en/part${part}${path}`
6+
}
27
return language === 'fi' ? `/osa${part}${path}` : `/${language}/part${part}${path}`;
38
};
49

0 commit comments

Comments
 (0)