📦 Chore(custom): remove unused files

This commit is contained in:
Kuingsmile
2025-08-01 13:12:44 +08:00
parent 236b7c6e7d
commit 15e2f11b69
3 changed files with 0 additions and 28 deletions

View File

@@ -1 +0,0 @@
VITE_DEV_SERVER_URL=http://localhost:5173

View File

View File

@@ -1,27 +0,0 @@
// convert-yaml-to-json.mjs
import fs from 'node:fs/promises'
import path from 'node:path'
import { fileURLToPath } from 'node:url'
import yaml from 'js-yaml'
const __filename = fileURLToPath(import.meta.url)
const __dirname = path.dirname(__filename)
// Change these paths as needed
const inputPath = path.resolve('./resources/i18n/zh-TW.yml')
const outputPath = path.resolve(__dirname, './zh-TW.json')
async function convertYamlToJson (yamlFile, jsonFile) {
try {
const fileContent = await fs.readFile(yamlFile, 'utf8')
const data = yaml.load(fileContent)
const jsonContent = JSON.stringify(data, null, 2)
await fs.writeFile(jsonFile, jsonContent, 'utf8')
console.log(`Converted ${yamlFile} to ${jsonFile}`)
} catch (err) {
console.error('Error during conversion:', err)
}
}
convertYamlToJson(inputPath, outputPath)