Skip to content

Commit e547ae9

Browse files
committed
feat: ✨ 增加泰米尔语语言
1 parent de6e300 commit e547ae9

File tree

4 files changed

+7
-1
lines changed

4 files changed

+7
-1
lines changed

src/components/Manga/defaultSettingList.tsx

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -390,6 +390,7 @@ export const defaultSettingList: () => SettingList = () => [
390390
['zh', '中文'],
391391
['en', 'English'],
392392
['ru', 'Русский'],
393+
['ta', 'தமிழ்'],
393394
]}
394395
value={lang()}
395396
onChange={setLang}

src/helper/i18n.ts

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -10,6 +10,7 @@ import {
1010
import zh from '../../locales/zh.json' assert { type: 'json' };
1111
import en from '../../locales/en.json' assert { type: 'json' };
1212
import ru from '../../locales/ru.json' assert { type: 'json' };
13+
import ta from '../../locales/ta.json' assert { type: 'json' };
1314

1415
import { byPath } from './other';
1516
import { log } from './logger';
@@ -27,6 +28,8 @@ export const t = createRoot(() => {
2728
return en;
2829
case 'ru':
2930
return ru;
31+
case 'ta':
32+
return ta;
3033
default:
3134
return zh;
3235
}

src/helper/languages.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
export const langList = ['zh', 'en', 'ru'] as const;
1+
export const langList = ['zh', 'en', 'ru', 'ta'] as const;
22
export type Languages = (typeof langList)[number];
33

44
/** 判断传入的字符串是否是支持的语言类型代码 */

src/rollup-plugin/metaHeader.ts

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -4,6 +4,7 @@ import pkg from '../../package.json' assert { type: 'json' };
44
import zh from '../../locales/zh.json' assert { type: 'json' };
55
import en from '../../locales/en.json' assert { type: 'json' };
66
import ru from '../../locales/ru.json' assert { type: 'json' };
7+
import ta from '../../locales/ta.json' assert { type: 'json' };
78

89
/**
910
* 脚本依赖库与对应的 cdn url
@@ -93,6 +94,7 @@ export const getMetaData = (isDevMode: boolean) => {
9394
.join('、')}`,
9495
'description:en': `${en.description} ${enSupportSite.join(' | ')}.`,
9596
'description:ru': ru.description,
97+
'description:ta': ta.description,
9698
author: pkg.author,
9799
license: pkg.license,
98100
noframes: true,

0 commit comments

Comments
 (0)