aboutsummaryrefslogtreecommitdiff
path: root/client-web/source/locale/mod.ts
diff options
context:
space:
mode:
authormetamuffin <metamuffin@disroot.org>2024-04-01 16:48:57 +0200
committermetamuffin <metamuffin@disroot.org>2024-04-01 16:48:57 +0200
commit45529def628fd1562bef262312649b428bbdb0f7 (patch)
tree4d7e54e9d45bbf91c1fe2247bf379e0e879cd89b /client-web/source/locale/mod.ts
parent5cd88136c70dc3aae12778180b7f1c2c568a00fc (diff)
downloadkeks-meet-45529def628fd1562bef262312649b428bbdb0f7.tar
keks-meet-45529def628fd1562bef262312649b428bbdb0f7.tar.bz2
keks-meet-45529def628fd1562bef262312649b428bbdb0f7.tar.zst
localization
Diffstat (limited to 'client-web/source/locale/mod.ts')
-rw-r--r--client-web/source/locale/mod.ts72
1 files changed, 72 insertions, 0 deletions
diff --git a/client-web/source/locale/mod.ts b/client-web/source/locale/mod.ts
new file mode 100644
index 0000000..4febcec
--- /dev/null
+++ b/client-web/source/locale/mod.ts
@@ -0,0 +1,72 @@
+import { PO_EN_US } from "./en.ts";
+
+export let PO: LanguageStrings;
+
+export function init_locale(lang: string) {
+ PO = LOCALES[lang]
+}
+
+export const LOCALES: { [key: string]: LanguageStrings } = {
+ "en-US": PO_EN_US
+}
+
+export interface LanguageStrings {
+ microphone: string,
+ camera: string,
+ screen: string,
+ file: string,
+ warn_short_secret: string,
+ warn_no_webrtc: string,
+ warn_secure_context: string,
+ warn_no_crypto: string,
+ warn_no_sw: string,
+ warn_old_url: string,
+ warn_mem_download: string,
+ chatbox_placeholder: string,
+ chatbox_label: string,
+ confirm_quit: string,
+ controls: string,
+ license: string,
+ source_code: string,
+ documentation: string,
+ chat: string,
+ settings: string,
+ known_rooms: string,
+ leave: string,
+ confirm_update: string,
+ image_alt: string,
+ join_message(author: HTMLElement | string): (HTMLElement | string)[],
+ leave_message(author: HTMLElement | string): (HTMLElement | string)[],
+ summary_empty_message: string,
+ summery_image: string,
+ edit: string,
+ finish_edit: string,
+ add_current_room: string,
+ add: string,
+ move_up: string,
+ move_down: string,
+ unknown_user: string,
+ status_connected: string,
+ status_no_conn: string,
+ status_checking: string,
+ status_disconnected: string,
+ status_failed: string,
+ downloading: string,
+ download: string,
+ download_again: string,
+ stop_sharing: string,
+ status_await_channel_open: string,
+ status_await_channel_close: string,
+ status_drain_buffer(amount: number): string,
+ status_buffering: string,
+ status_closing: string,
+ mute: string,
+ video_stream: string,
+ audio_stream: string,
+ enable: string,
+ disable: string,
+ notification_perm_explain: string,
+ grant: string,
+ status_await_track: string,
+ clear_prefs: string,
+}