step 002 complete
This commit is contained in:
9
website/src/content/i18n.ts
Normal file
9
website/src/content/i18n.ts
Normal file
@@ -0,0 +1,9 @@
|
||||
import enContent from './en.json';
|
||||
import nlContent from './nl.json';
|
||||
|
||||
type Content = typeof enContent;
|
||||
|
||||
export function getContent(locale: string): Content {
|
||||
if (locale === 'nl') return nlContent as Content;
|
||||
return enContent;
|
||||
}
|
||||
Reference in New Issue
Block a user