diff options
| author | Leitwolf | 2026-11-16 14:49:23 +0300 |
|---|---|---|
| committer | GitHub | 2026-11-16 14:49:23 +0300 |
| commit | 324048967d1fb198e3489b1722ca1ff317338550 (patch) | |
| tree | e270ad6dc86200cc79cbdccfa1ef6de1da8aff0d /app/composables | |
| parent | 45c1bb14326cbee8fe57c6f639550e8eadd81f0a (diff) | |
| parent | 4ee77681379619b3fab7b8b33446a67164216cc8 (diff) | |
| download | tazel.net-main.tar.gz | |
Rewrite the site for the Tazel of C, C++, Objective-C, Objective-C++ and Zig
Diffstat (limited to 'app/composables')
| -rw-r--r-- | app/composables/useDocs.ts | 2 | ||||
| -rw-r--r-- | app/composables/useSiteLocale.ts | 7 |
2 files changed, 4 insertions, 5 deletions
diff --git a/app/composables/useDocs.ts b/app/composables/useDocs.ts index ac5598b..2167ba9 100644 --- a/app/composables/useDocs.ts +++ b/app/composables/useDocs.ts @@ -8,7 +8,7 @@ export const docCollections = { "en-US": "docs_en", "de-DE": "docs_de", "ru-RU": "docs_ru", - "he-IL": "docs_he", + "fr-FR": "docs_fr", } as const satisfies Record<Locale, string>; /** A group of the documentation tree and the pages in it, in their order. */ diff --git a/app/composables/useSiteLocale.ts b/app/composables/useSiteLocale.ts index 1596751..45e3885 100644 --- a/app/composables/useSiteLocale.ts +++ b/app/composables/useSiteLocale.ts @@ -7,7 +7,6 @@ import { localePath, locales, pageOfPath, - textDirection, type Locale, } from "~/content/locales"; import { siteUrl } from "~/content/site"; @@ -25,14 +24,14 @@ export function useSiteLocale() { } /** - * The head of a page: its title and description, the language and direction of the document, - * and the address of the page in every language. + * The head of a page: its title and description, the language of the document, which runs left + * to right in every language of the site, and the address of the page in every language. */ export function usePageHead(text: () => { title: string; description: string }) { const { locale, page } = useSiteLocale(); const url = (target: Locale) => `${siteUrl}${localePath(target, page.value)}`; useHead(() => ({ - htmlAttrs: { lang: locale.value, dir: textDirection(locale.value) }, + htmlAttrs: { lang: locale.value, dir: "ltr" }, link: [ { rel: "canonical", href: url(locale.value) }, ...locales.map((target) => ({ |