-
Notifications
You must be signed in to change notification settings - Fork 57
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
c94a0be
commit e14cd45
Showing
36 changed files
with
7,976 additions
and
7,709 deletions.
There are no files selected for viewing
This file was deleted.
Oops, something went wrong.
Large diffs are not rendered by default.
Oops, something went wrong.
File renamed without changes.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Oops, something went wrong.
Large diffs are not rendered by default.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,29 @@ | ||
import "./assets/language-select.css"; | ||
/** NOTE: Can be used as quick access item in the Header */ | ||
export declare function LanguageSelect<Language extends string>(props: { | ||
id?: string; | ||
supportedLangs: readonly Language[]; | ||
fullNameByLang: Record<Language, string>; | ||
lang: Language; | ||
setLang: (lang: Language) => void; | ||
}): JSX.Element; | ||
export declare const useTranslation: () => { | ||
t: (<K extends "select language">(messageKey: K) => { | ||
"select language": string; | ||
}[K] extends (params: any) => infer R ? R : { | ||
"select language": string; | ||
}[K]) & (<K_1 extends never>(messageKey: K_1, params: { | ||
"select language": string; | ||
}[K_1] extends infer T ? T extends { | ||
"select language": string; | ||
}[K_1] ? T extends (params: any) => any ? Parameters<T>[0] : never : never : never) => { | ||
"select language": string; | ||
}[K_1] extends (params: any) => infer R_1 ? R_1 : { | ||
"select language": string; | ||
}[K_1]); | ||
}, addLanguageSelectTranslations: (params: { | ||
lang: string; | ||
messages: Partial<{ | ||
"select language": string; | ||
}>; | ||
}) => void; |
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Oops, something went wrong.
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,13 @@ | ||
|
||
|
||
|
||
.language-select .short-label { | ||
text-transform: uppercase | ||
} | ||
.language-select .fr-menu { | ||
right: 0; | ||
} | ||
|
||
.language-select .fr-translate { | ||
display: inline-flex;; | ||
} |
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Oops, something went wrong.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Oops, something went wrong.