Skip to content

Commit

Permalink
add missing japanese declaration
Browse files Browse the repository at this point in the history
  • Loading branch information
DerGoogler committed Aug 28, 2024
1 parent 091e933 commit 136bdc7
Showing 1 changed file with 5 additions and 3 deletions.
8 changes: 5 additions & 3 deletions src/locales/declaration.ts
Original file line number Diff line number Diff line change
@@ -1,17 +1,18 @@
import React from "react";
import { AvailableLangs, useStrings } from "@Hooks/useStrings";
import { de } from "./de";
import { en } from "./en";
import { zh } from "./zh";
import { pt_BR } from "./pt-BR";
import { az_AZ } from "./az-AZ"
import React from "react";
import { az_AZ } from "./az-AZ";
import { ja } from "./ja";

/**
* English is the default language
*/
export type StringDeclaration = keyof typeof en;

export type AvailableStrs = "en" | "de" | "zh" | "pt-BR" | "az-AZ";
export type AvailableStrs = "en" | "de" | "zh" | "pt-BR" | "az-AZ" | "ja";
export type Strs = {
[code in AvailableStrs]: Partial<Record<StringDeclaration, str>>;
};
Expand All @@ -22,6 +23,7 @@ export const strs: Strs = {
zh: zh,
"pt-BR": pt_BR,
"az-AZ": az_AZ,
ja: ja,
};

export const useLanguageMap = (): arr<AvailableLangs> => {
Expand Down

0 comments on commit 136bdc7

Please sign in to comment.