web: add basic lingui
Signed-off-by: Jens Langhammer <jens.langhammer@beryju.org>
This commit is contained in:
@ -4,6 +4,7 @@ import { me } from "../api/Users";
|
||||
import { SidebarItem } from "../elements/sidebar/Sidebar";
|
||||
import { ID_REGEX, SLUG_REGEX, UUID_REGEX } from "../elements/router/Route";
|
||||
import { Interface } from "./Interface";
|
||||
import "./locale";
|
||||
|
||||
export const SIDEBAR_ITEMS: SidebarItem[] = [
|
||||
new SidebarItem("Library", "/library"),
|
||||
|
@ -1,4 +1,3 @@
|
||||
import "construct-style-sheets-polyfill";
|
||||
|
||||
import "./locale";
|
||||
import "../elements/messages/MessageContainer";
|
||||
import "../flows/FlowExecutor";
|
||||
|
7
web/src/interfaces/locale.ts
Normal file
7
web/src/interfaces/locale.ts
Normal file
@ -0,0 +1,7 @@
|
||||
import { i18n } from '@lingui/core'
|
||||
|
||||
// messages.js is generated by the cli
|
||||
import { messages } from '../locales/en';
|
||||
|
||||
i18n.load('en', messages)
|
||||
i18n.activate('en')
|
1
web/src/locales/.gitignore
vendored
Normal file
1
web/src/locales/.gitignore
vendored
Normal file
@ -0,0 +1 @@
|
||||
*.ts
|
Reference in New Issue
Block a user