aiwf
Version:
AI Workflow Framework for Claude Code with multi-language support (Korean/English)
190 lines (187 loc) โข 10.8 kB
JavaScript
/**
* Localized messages for AIWF installer
*/
export const messages = {
ko: {
welcome: '\n๐ AIWF์ ์ค์ ๊ฒ์ ํ์ํฉ๋๋ค!\n',
description: '์ด ์ค์น ํ๋ก๊ทธ๋จ์ AIWF AI ํ๋กฌํํธ ํ๋ ์์ํฌ๋ฅผ ์ค์ ํฉ๋๋ค',
optimized: 'ํน๋ณํ Claude Code ์ ์ต์ ํ ๋์ด์์ต๋๋ค.\n',
selectLanguage: 'Please select language / ์ธ์ด๋ฅผ ์ ํํด์ฃผ์ธ์:',
korean: 'ํ๊ตญ์ด (Korean)',
english: 'English',
existingDetected: '๊ธฐ์กด AIWF ์ค์น๊ฐ ๊ฐ์ง๋์์ต๋๋ค. ๋ฌด์์ ํ์๊ฒ ์ต๋๊น?',
updateOption: '์
๋ฐ์ดํธ (๋ช
๋ น์ด์ ๋ฌธ์๋ง ์
๋ฐ์ดํธํ๊ณ ์์
๋ด์ฉ์ ๋ณด์กด)',
reinstallOption: '์์ ์ฌ์ค์น (๋ชจ๋ ๋ด์ฉ์ ์๋ก ์ค์น, ๊ธฐ์กด ํ๋ก์ ํธ ๋ฎ์ด์ฐ๊ธฐ)',
skipOption: '์ค์น ๊ฑด๋๋ฐ๊ธฐ',
cancelOption: '์ทจ์',
projectDetected: '๊ธฐ์กด ํ๋ก์ ํธ๊ฐ ๊ฐ์ง๋์์ต๋๋ค. ํ๋ก์ ํธ ํ์ผ์ ์ด๋ป๊ฒ ์ฒ๋ฆฌํ์๊ฒ ์ต๋๊น?',
preserveProject: 'ํ๋ก์ ํธ ๋ณด์กด (๊ธฐ์กด ํ๋ก์ ํธ ํ์ผ ์ ์ง)',
overwriteProject: '๋ฎ์ด์ฐ๊ธฐ (์๋ก ์ค์นํ๊ณ ๊ธฐ์กด ํ๋ก์ ํธ ์ญ์ )',
checkingProject: '๊ธฐ์กด ํ๋ก์ ํธ ํ์ธ ์ค...',
projectFound: '๊ธฐ์กด ํ๋ก์ ํธ๊ฐ ๋ฐ๊ฒฌ๋์์ต๋๋ค:',
projectPreserved: '๐พ ํ๋ก์ ํธ๊ฐ ๋ณด์กด๋์์ต๋๋ค.',
projectOverwritten: '๐ ํ๋ก์ ํธ๊ฐ ์๋ก ์ค์น๋์์ต๋๋ค.',
installCancelled: '\n์ค์น๊ฐ ์ทจ์๋์์ต๋๋ค.',
backingUp: '๊ธฐ์กด ๋ช
๋ น์ด ๋ฐ ๋ฌธ์ ๋ฐฑ์
์ค...',
fetching: 'GitHub์์ AIWF ํ๋ ์์ํฌ๋ฅผ ๊ฐ์ ธ์ค๋ ์ค...',
downloading: 'AIWF ํ๋ ์์ํฌ ํ์ผ์ ๋ค์ด๋ก๋ํ๋ ์ค...',
updatingDocs: '๋ฌธ์๋ฅผ ์
๋ฐ์ดํธํ๋ ์ค...',
downloadingCommands: 'AIWF ๋ช
๋ น์ด๋ฅผ ์๋ก ๋ค์ด๋ก๋ํ๋ ์ค...',
updateSuccess: 'โ
AIWF ํ๋ ์์ํฌ๊ฐ ์ฑ๊ณต์ ์ผ๋ก ์
๋ฐ์ดํธ๋์์ต๋๋ค!',
installSuccess: 'โ
AIWF ํ๋ ์์ํฌ๊ฐ ์ฑ๊ณต์ ์ผ๋ก ์ค์น๋์์ต๋๋ค!',
enjoy: '\nEnjoy AIWF! ๐\n',
backupComplete: '{count}๊ฐ ํ์ผ ๋ฐฑ์
์๋ฃ (*.bak)',
noFilesToBackup: '๋ฐฑ์
ํ ๊ธฐ์กด ํ์ผ์ด ์์ต๋๋ค',
backupFailed: '๋ฐฑ์
์คํจ',
downloadingFile: '{path} ๋ค์ด๋ก๋ ์ค...',
downloadingTemplates: 'ํ
ํ๋ฆฟ ๋๋ ํ ๋ฆฌ๋ฅผ ๋ค์ด๋ก๋ ์ค...',
templatesNotFound: 'ํ
ํ๋ฆฟ ๋๋ ํ ๋ฆฌ๋ฅผ ์ฐพ์ ์ ์์ด ๊ฑด๋๋๋๋ค...',
deletingOldCommands: '๊ธฐ์กด AIWF ๋ช
๋ น์ด ํด๋๋ฅผ ์ญ์ ํ๋ ์ค...',
commandsNotFound: '๋ช
๋ น์ด ๋๋ ํ ๋ฆฌ๋ฅผ ์ฐพ์ ์ ์์ด ๊ฑด๋๋๋๋ค...',
downloadingRulesGlobal: 'rules/global ํด๋๋ฅผ ๋ค์ด๋ก๋ ์ค...',
rulesGlobalNotFound: 'rules/global ํด๋๋ฅผ ์ฐพ์ ์ ์์ด ๊ฑด๋๋๋๋ค...',
downloadingRulesManual: 'rules/manual ํด๋๋ฅผ ๋ค์ด๋ก๋ ์ค...',
rulesManualNotFound: 'rules/manual ํด๋๋ฅผ ์ฐพ์ ์ ์์ด ๊ฑด๋๋๋๋ค...',
updateHistory: '๐ ์
๋ฐ์ดํธ ๋ด์ญ:',
updatedCommands: '๋ด์ ๋ช
๋ น์ด',
updatedDocs: '๋ฌธ์ (CLAUDE.md ํ์ผ)',
workPreserved: '๐พ ์์
๋ด์ฉ์ ๋ณด์กด๋์์ต๋๋ค:',
allFilesPreserved: '๋ชจ๋ ์์
, ์คํ๋ฆฐํธ, ๋ฐ ํ๋ก์ ํธ ํ์ผ์ด ๋ณ๊ฒฝ๋์ง ์์',
backupCreated: '๋ฐฑ์
์ *.bak ํ์ผ๋ก ๋ง๋ค์ด์ง',
structureCreated: '๐ ์์ฑ๋ ๊ตฌ์กฐ:',
aiwfRoot: 'ํ๋ก์ ํธ ๊ด๋ฆฌ ๋ฃจํธ',
claudeCommands: 'Claude ์ฌ์ฉ์ ๋ช
๋ น์ด',
nextSteps: '๐ ๋ค์ ๋จ๊ณ:',
nextStep1: 'Claude Code์์ ์ด ํ๋ก์ ํธ๋ฅผ ์ฝ๋๋ค',
nextStep2: '/aiwf_<command> ๋ช
๋ น์ด๋ฅผ ์ฌ์ฉํ์ฌ ํ๋ก์ ํธ๋ฅผ ๊ด๋ฆฌํ์ธ์',
nextStep3: '/aiwf_initialize๋ฅผ ์คํํ์ฌ ํ๋ก์ ํธ๋ฅผ ์ค์ ํ์ธ์',
gettingStarted: 'โจ ์์ํ๋ ค๋ฉด:',
startStep1: '์ ํฐ๋ฏธ๋์ ์ด๊ฑฐ๋ ์ ํ๋กํ์ ์์ฑํ์ธ์ (์: source ~/.zshrc)',
startStep2: '๋ค์์ ์คํํ์ธ์: claude ๋ฅผ ์คํํ์ฌ ์ฌ์ฉ ๊ฐ๋ฅํ ๋ช
๋ น์ด๋ฅผ ํ์ธํ์ธ์.',
checkDocs: '์์ธํ ๋ด์ฉ์ .aiwf ๋๋ ํ ๋ฆฌ์ ๋ฌธ์๋ฅผ ํ์ธํ์ธ์.',
updateFailed: '์
๋ฐ์ดํธ ์คํจ',
installFailed: '์ค์น ์คํจ',
noBackupFound: '๋ณต์ํ ๋ฐฑ์
ํด๋๊ฐ ์์ต๋๋ค.',
restoringFromBackup: '๋ฐฑ์
์์ ๋ณต์ ์ค...',
restoreSuccess: '์ฑ๊ณต์ ์ผ๋ก ๋ณต์๋์์ต๋๋ค.',
restoreFailed: '๋ณต์์ ์คํจํ์ต๋๋ค.',
cannotRestore: 'ํ์ผ์ ๋ณต์ํ ์ ์์ต๋๋ค. ์๋ ํ์ธ์ด ํ์ํฉ๋๋ค.',
checkingInstallation: 'AIWF ์ค์น ์ํ๋ฅผ ํ์ธํ๋ ์ค...',
creatingDirectories: 'AIWF ๋๋ ํ ๋ฆฌ ๊ตฌ์กฐ๋ฅผ ์์ฑํ๋ ์ค...',
restoringBackup: '๋ฐฑ์
์์ ํ์ผ์ ๋ณต์ํ๋ ์ค...',
backupRestored: '{count}๊ฐ ํ์ผ์ด ๋ณต์๋์์ต๋๋ค',
checkingExistingTools: '๊ธฐ์กด ๋๊ตฌ ๋๋ ํ ๋ฆฌ๋ฅผ ํ์ธํ๋ ์ค...',
foundExistingCursor: 'Cursor ๊ท์น ํ์ผ์ด ๋ฐ๊ฒฌ๋์์ต๋๋ค',
foundExistingWindsurf: 'Windsurf ๊ท์น ํ์ผ์ด ๋ฐ๊ฒฌ๋์์ต๋๋ค',
backingUpToolFiles: '๊ธฐ์กด ๋๊ตฌ ํ์ผ์ ๋ฐฑ์
ํ๋ ์ค...',
toolBackupCreated: '๋๊ตฌ ํ์ผ ๋ฐฑ์
์ด ์์ฑ๋์์ต๋๋ค',
installingToolRules: '๋๊ตฌ ๊ท์น์ ์ค์นํ๋ ์ค...',
toolRulesInstalled: '๋๊ตฌ ๊ท์น์ด ์ฑ๊ณต์ ์ผ๋ก ์ค์น๋์์ต๋๋ค',
// ์ค์น ์ต์
๊ด๋ จ
installationOptions: 'AIWF ์ค์น ์ต์
์ ์ ํํ์ธ์:',
aiwfDocs: 'AIWF ๋ฌธ์ ํด๋ (.aiwf/docs)',
claudeCodeCommands: 'Claude Code ๋ช
๋ น์ด ๋ฐ ์์ด์ ํธ',
windsurfRules: 'Windsurf ๊ท์น ํ์ผ',
cursorRules: 'Cursor ๊ท์น ํ์ผ',
selectAll: '๋ชจ๋ ์ต์
์ ํ',
installSelected: '์ ํํ ํญ๋ชฉ๋ค์ ์ค์นํ์๊ฒ ์ต๋๊น?',
installingOption: '์ค์น ์ค: ',
optionInstalled: '์๋ฃ: ',
noOptionsSelected: '์ ํ๋ ์ต์
์ด ์์ต๋๋ค.',
},
en: {
welcome: '\n๐ Welcome to AIWF!\n',
description: 'This installer sets up the AIWF AI prompt framework',
optimized: 'Specially optimized for Claude Code.\n',
selectLanguage: 'Please select language / ์ธ์ด๋ฅผ ์ ํํด์ฃผ์ธ์:',
korean: 'ํ๊ตญ์ด (Korean)',
english: 'English',
existingDetected: 'Existing AIWF installation detected. What would you like to do?',
updateOption: 'Update (Update commands and docs only, preserve work content)',
reinstallOption: 'Complete reinstall (Install everything fresh, overwrite existing project)',
skipOption: 'Skip installation',
cancelOption: 'Cancel',
projectDetected: 'Existing project detected. How would you like to handle project files?',
preserveProject: 'Preserve project (Keep existing project files)',
overwriteProject: 'Overwrite (Fresh install and remove existing project)',
checkingProject: 'Checking for existing project...',
projectFound: 'Existing project found:',
projectPreserved: '๐พ Project has been preserved.',
projectOverwritten: '๐ Project has been freshly installed.',
installCancelled: '\nInstallation cancelled.',
backingUp: 'Backing up existing commands and documents...',
fetching: 'Fetching AIWF framework from GitHub...',
downloading: 'Downloading AIWF framework files...',
updatingDocs: 'Updating documentation...',
downloadingCommands: 'Downloading AIWF commands...',
updateSuccess: 'โ
AIWF framework updated successfully!',
installSuccess: 'โ
AIWF framework installed successfully!',
enjoy: '\nEnjoy AIWF! ๐\n',
backupComplete: '{count} files backed up (*.bak)',
noFilesToBackup: 'No existing files to backup',
backupFailed: 'Backup failed',
downloadingFile: 'Downloading {path}...',
downloadingTemplates: 'Downloading template directories...',
templatesNotFound: 'Template directories not found, skipping...',
deletingOldCommands: 'Deleting existing AIWF commands folder...',
commandsNotFound: 'Commands directory not found, skipping...',
downloadingRulesGlobal: 'Downloading rules/global folder...',
rulesGlobalNotFound: 'rules/global folder not found, skipping...',
downloadingRulesManual: 'Downloading rules/manual folder...',
rulesManualNotFound: 'rules/manual folder not found, skipping...',
updateHistory: '๐ Update History:',
updatedCommands: '/ commands',
updatedDocs: 'Documentation (CLAUDE.md files)',
workPreserved: '๐พ Work preserved:',
allFilesPreserved: 'All work, sprints, and project files unchanged',
backupCreated: 'Backups created as *.bak files',
structureCreated: '๐ Structure created:',
aiwfRoot: 'Project management root',
claudeCommands: 'Claude user commands',
nextSteps: '๐ Next steps:',
nextStep1: 'Open this project in Claude Code',
nextStep2: 'Use /aiwf_<command> commands to manage your project',
nextStep3: 'Run /aiwf_initialize to set up your project',
gettingStarted: 'โจ Getting started:',
startStep1: 'Open a new terminal or source your shell profile (e.g. source ~/.zshrc)',
startStep2: 'Run: claude to see available commands.',
checkDocs: 'For more details, check the documentation in the .aiwf directory.',
updateFailed: 'Update failed',
installFailed: 'Installation failed',
noBackupFound: 'No backup folder found to restore.',
restoringFromBackup: 'Restoring from backup...',
restoreSuccess: 'Successfully restored.',
restoreFailed: 'Restore failed.',
cannotRestore: 'Cannot restore file. Manual verification required.',
checkingInstallation: 'Checking AIWF installation status...',
creatingDirectories: 'Creating AIWF directory structure...',
restoringBackup: 'Restoring files from backup...',
backupRestored: '{count} files restored',
checkingExistingTools: 'Checking existing tool directories...',
foundExistingCursor: 'Found existing Cursor rules',
foundExistingWindsurf: 'Found existing Windsurf rules',
backingUpToolFiles: 'Backing up existing tool files...',
toolBackupCreated: 'Tool files backup created',
installingToolRules: 'Installing tool rules...',
toolRulesInstalled: 'Tool rules installed successfully',
// Installation options
installationOptions: 'Select AIWF installation options:',
aiwfDocs: 'AIWF Documentation folder (.aiwf/docs)',
claudeCodeCommands: 'Claude Code commands and agents',
windsurfRules: 'Windsurf rules files',
cursorRules: 'Cursor rules files',
selectAll: 'Select all options',
installSelected: 'Install selected items?',
installingOption: 'Installing: ',
optionInstalled: 'Completed: ',
noOptionsSelected: 'No options selected.',
}
};
/**
* Get messages for a specific language
* @param {string} language - Language code ('ko' or 'en')
* @returns {Object} Messages object for the specified language
*/
export function getMessages(language) {
return messages[language] || messages.en;
}