From a8b44b09a404aee477e735501b828d1b14aad311 Mon Sep 17 00:00:00 2001 From: ivarlovlie Date: Tue, 7 Jun 2022 01:33:52 +0200 Subject: feat: Add inital translation support --- apps/web-shared/src/lib/configuration.ts | 3 ++- apps/web-shared/src/lib/helpers.ts | 10 +--------- 2 files changed, 3 insertions(+), 10 deletions(-) (limited to 'apps/web-shared/src/lib') diff --git a/apps/web-shared/src/lib/configuration.ts b/apps/web-shared/src/lib/configuration.ts index cb08d21..5c79089 100644 --- a/apps/web-shared/src/lib/configuration.ts +++ b/apps/web-shared/src/lib/configuration.ts @@ -40,7 +40,8 @@ export function is_debug(): boolean { } export const CookieNames = { - theme: "go_theme" + theme: "go_theme", + locale: "go_locale" }; export const QueryKeys = { diff --git a/apps/web-shared/src/lib/helpers.ts b/apps/web-shared/src/lib/helpers.ts index 4da8254..1cf94f4 100644 --- a/apps/web-shared/src/lib/helpers.ts +++ b/apps/web-shared/src/lib/helpers.ts @@ -1,4 +1,4 @@ -import {base_domain, CookieNames, StorageKeys} from "$shared/lib/configuration"; +import {base_domain, CookieNames} from "$shared/lib/configuration"; import {TimeEntryDto} from "$shared/lib/models/TimeEntryDto"; import {UnwrappedEntryDateTime} from "$shared/lib/models/UnwrappedEntryDateTime"; import {Temporal} from "@js-temporal/polyfill"; @@ -482,11 +482,3 @@ export function get_hash_code(value: string): number|undefined { } return hash; } - -export function $(selector: string): HTMLElement|null { - return document.querySelector(selector); -} - -export function $$(selector: string): NodeListOf { - return document.querySelectorAll(selector); -} -- cgit v1.3