Skip to content

Commit bbe049e

Browse files
authored
Merge pull request #967 from Kyoungwoong/feature/simple-structure
refac[vibe]: MCP 서버 확장에 따른 구조 리팩토링
2 parents e481cf3 + 1178e7e commit bbe049e

14 files changed

Lines changed: 444 additions & 388 deletions

File tree

packages/mcp/package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@
77
"type": "module",
88
"scripts": {
99
"dev": "npx @smithery/cli dev",
10-
"build": "npx tsc && copyfiles -u 1 \"src/locales/**/*\" dist/ && copyfiles -u 1 \"src/html/**/*\" dist/",
10+
"build": "npx tsc && copyfiles -u 1 \"src/resources/locales/**/*\" dist/ && copyfiles -u 1 \"src/html/**/*\" dist/",
1111
"build:clean": "rimraf dist && npm run build",
1212
"watch": "npx tsc -w"
1313
},

packages/mcp/src/common/i18n.ts

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -16,7 +16,7 @@ class I18nManager {
1616

1717
private loadFallback() {
1818
try {
19-
const fallbackPath = path.join(__dirname, '../locales/en.json');
19+
const fallbackPath = path.join(__dirname, '../resources/locales/en.json');
2020
const fallbackData = fs.readFileSync(fallbackPath, 'utf-8');
2121
this.fallbackTranslations = JSON.parse(fallbackData);
2222
this.translations = this.fallbackTranslations;
@@ -36,7 +36,7 @@ class I18nManager {
3636
}
3737

3838
try {
39-
const localePath = path.join(__dirname, `../locales/${locale}.json`);
39+
const localePath = path.join(__dirname, `../resources/locales/${locale}.json`);
4040
const localeData = fs.readFileSync(localePath, 'utf-8');
4141
this.translations = JSON.parse(localeData);
4242
} catch (error) {
8.15 KB
Loading
File renamed without changes.
File renamed without changes.

0 commit comments

Comments
 (0)