feat: migrate language code
All checks were successful
Deploy / Deploy (push) Successful in 1m15s

This commit is contained in:
CDN 2025-02-03 22:52:56 +08:00
parent 47cf6171c5
commit 9ac43ef4f9
Signed by: CDN
GPG key ID: 0C656827F9F80080
86 changed files with 119 additions and 80 deletions

View file

@ -14,22 +14,22 @@ interface LanguageConfig {
const LANGUAGES: LanguageConfig[] = [
{
code: 'en-US',
dataDir: 'en-US',
title: 'STARSET Mirror Site Updates',
description: 'Latest updates from STARSET Mirror Site'
code: 'en',
dataDir: 'en',
title: 'Starset Mirror - Updates',
description: 'Latest updates from Starset Mirror'
},
{
code: 'zh-CN',
dataDir: 'zh-CN',
title: 'STARSET Mirror 项目动态',
description: 'STARSET Mirror 最新动态'
code: 'zh-Hans',
dataDir: 'zh-Hans',
title: 'Starset Mirror - 更新',
description: 'Starset Mirror 的最新更新'
},
{
code: 'zh-Hant',
dataDir: 'zh-TW',
title: 'STARSET Mirror 專案動态',
description: 'STARSET Mirror 最新動態'
dataDir: 'zh-Hant',
title: 'Starset Mirror - 更新',
description: 'Starset Mirror 的最新更新'
}
];

View file

@ -6,7 +6,7 @@ import xml2js from 'xml2js';
const __filename = fileURLToPath(import.meta.url);
const __dirname = dirname(__filename);
const LANGUAGES = ['en-US', 'zh-CN', 'zh-TW'];
const LANGUAGES = ['en', 'zh-Hans', 'zh-Hant'];
const BASE_URL = 'mirror.starset.fans';
interface Update {

View file

@ -6,7 +6,7 @@ import xml2js from 'xml2js';
const __filename = fileURLToPath(import.meta.url);
const __dirname = dirname(__filename);
const LANGUAGES = ['en-US', 'zh-CN', 'zh-TW'];
const LANGUAGES = ['en', 'zh-Hans', 'zh-Hant'];
const BASE_URL = 'starset.wiki'; // Replace with your actual domain
async function getYearlyIndices(lang) {