Compare commits
2 Commits
d13613344f
...
51f0379eb9
| Author | SHA1 | Date | |
|---|---|---|---|
| 51f0379eb9 | |||
|
|
b0408a8929 |
@@ -48,7 +48,7 @@ services:
|
||||
|
||||
tempo:
|
||||
<<: *service-base
|
||||
image: grafana/tempo:latest@sha256:06ebe790cb79881ec9df66d26616cf5b0d1165d2b14f43bc187f4f8c57975541
|
||||
image: grafana/tempo:latest@sha256:ae81713870dd6967ec408fbaf5a698b20a5d4e77333f937e5ad8a200bcfc0956
|
||||
command: [-config.file=/etc/tempo.yaml]
|
||||
volumes:
|
||||
- ./telemetry/tempo.yaml:/etc/tempo.yaml
|
||||
|
||||
4
packages/webapp/src/@types/i18next.d.ts
vendored
4
packages/webapp/src/@types/i18next.d.ts
vendored
@@ -1,8 +1,10 @@
|
||||
import type { resources } from "@/i18n"
|
||||
import type { defaultNS, resources } from "@/i18n"
|
||||
|
||||
|
||||
declare module "i18next" {
|
||||
interface CustomTypeOptions {
|
||||
enableSelector: true
|
||||
defaultNS: typeof defaultNS
|
||||
resources: typeof resources["en"]
|
||||
}
|
||||
}
|
||||
|
||||
@@ -1,4 +1,5 @@
|
||||
export const en = {
|
||||
common: {},
|
||||
nav: {
|
||||
gitRepos: "Git repositories",
|
||||
sourceCode: "Source code",
|
||||
|
||||
@@ -2,6 +2,7 @@ import type { en } from "./en"
|
||||
|
||||
|
||||
export const fr = {
|
||||
common: {},
|
||||
nav: {
|
||||
gitRepos: "Dépôts Git",
|
||||
sourceCode: "Code source",
|
||||
|
||||
@@ -5,6 +5,7 @@ import { en } from "./en"
|
||||
import { fr } from "./fr"
|
||||
|
||||
|
||||
export const defaultNS = "common"
|
||||
export const resources = { en, fr } as const
|
||||
|
||||
await i18n
|
||||
@@ -12,6 +13,7 @@ await i18n
|
||||
.use(LanguageDetector)
|
||||
.init({
|
||||
supportedLngs: ["en", "fr"],
|
||||
defaultNS,
|
||||
resources,
|
||||
interpolation: {
|
||||
escapeValue: false
|
||||
|
||||
@@ -18,11 +18,11 @@ function RootComponent() {
|
||||
<div className="container mt-10 mr-auto ml-auto flex flex-row items-center justify-center gap-20">
|
||||
<div className="flex flex-row items-center justify-center gap-2">
|
||||
<Button asChild>
|
||||
<a href="https://git.valverde.cloud"><DiGit /> {t("nav:gitRepos")}</a>
|
||||
<a href="https://git.valverde.cloud"><DiGit /> {t($ => $.gitRepos, { ns: "nav" })}</a>
|
||||
</Button>
|
||||
|
||||
<Button asChild>
|
||||
<a href="https://git.valverde.cloud/thilawyn/website"><FaCode /> {t("nav:sourceCode")}</a>
|
||||
<a href="https://git.valverde.cloud/thilawyn/website"><FaCode /> {t($ => $.sourceCode, { ns: "nav" })}</a>
|
||||
</Button>
|
||||
|
||||
<Button>Resumé</Button>
|
||||
|
||||
Reference in New Issue
Block a user