mirror of
https://github.com/logto-io/logto.git
synced 2024-12-30 20:33:54 -05:00
chore: update README and language options (#1709)
* chore: update README * chore: update language options
This commit is contained in:
parent
d1900e1854
commit
c7e311c344
3 changed files with 11 additions and 10 deletions
|
@ -59,6 +59,12 @@ Requires [Node.js](https://nodejs.org/) `^16.13.0` + [PostgreSQL](https://postgr
|
||||||
node -e "$(printf "%s" "$(curl -fsSL https://raw.githubusercontent.com/logto-io/logto/HEAD/install.js)")"
|
node -e "$(printf "%s" "$(curl -fsSL https://raw.githubusercontent.com/logto-io/logto/HEAD/install.js)")"
|
||||||
```
|
```
|
||||||
|
|
||||||
|
## Language support
|
||||||
|
|
||||||
|
```ts
|
||||||
|
const languages = ['English', '简体中文', 'Türkçe', '한국어'];
|
||||||
|
```
|
||||||
|
|
||||||
## Bug report, feature request, feedback
|
## Bug report, feature request, feedback
|
||||||
|
|
||||||
- Our team takes security seriously, especially when it relates to identity. If you find any existing or potential security issues, please do not hesitate to email 🔒 [security@logto.io](mailto:security@logto.io).
|
- Our team takes security seriously, especially when it relates to identity. If you find any existing or potential security issues, please do not hesitate to email 🔒 [security@logto.io](mailto:security@logto.io).
|
||||||
|
|
|
@ -14,7 +14,7 @@ export enum Language {
|
||||||
|
|
||||||
export const languageOptions = [
|
export const languageOptions = [
|
||||||
{ value: Language.English, title: 'English' },
|
{ value: Language.English, title: 'English' },
|
||||||
{ value: Language.Chinese, title: '中文' },
|
{ value: Language.Chinese, title: '简体中文' },
|
||||||
{ value: Language.Turkish, title: 'Turkish' },
|
{ value: Language.Turkish, title: 'Türkçe' },
|
||||||
{ value: Language.Korean, title: '한국어' },
|
{ value: Language.Korean, title: '한국어' },
|
||||||
];
|
];
|
||||||
|
|
|
@ -1,14 +1,11 @@
|
||||||
/* eslint-disable @typescript-eslint/consistent-indexed-object-style */
|
|
||||||
import { z } from 'zod';
|
import { z } from 'zod';
|
||||||
|
|
||||||
/* Copied from i18next/index.d.ts */
|
/* Copied from i18next/index.d.ts */
|
||||||
export type Resource = Record<Language, ResourceLanguage>;
|
export type Resource = Record<Language, ResourceLanguage>;
|
||||||
|
|
||||||
export interface ResourceLanguage {
|
export type ResourceLanguage = Record<string, ResourceKey>;
|
||||||
[namespace: string]: ResourceKey;
|
|
||||||
}
|
|
||||||
|
|
||||||
export type ResourceKey = string | { [key: string]: unknown };
|
export type ResourceKey = string | Record<string, unknown>;
|
||||||
|
|
||||||
export enum Language {
|
export enum Language {
|
||||||
English = 'en',
|
English = 'en',
|
||||||
|
@ -21,9 +18,7 @@ export const languageEnumGuard = z.nativeEnum(Language);
|
||||||
|
|
||||||
export const languageOptions = [
|
export const languageOptions = [
|
||||||
{ value: Language.English, title: 'English' },
|
{ value: Language.English, title: 'English' },
|
||||||
{ value: Language.Chinese, title: '中文' },
|
{ value: Language.Chinese, title: '简体中文' },
|
||||||
{ value: Language.Turkish, title: 'Türkçe' },
|
{ value: Language.Turkish, title: 'Türkçe' },
|
||||||
{ value: Language.Korean, title: '한국어' },
|
{ value: Language.Korean, title: '한국어' },
|
||||||
];
|
];
|
||||||
|
|
||||||
/* eslint-enable @typescript-eslint/consistent-indexed-object-style */
|
|
||||||
|
|
Loading…
Reference in a new issue