Merge pull request #16 from camelChief/12-please-add-korean-bible-names

12 - Added support for Korean in settings/UI.
This commit is contained in:
Caleb Campbell
2026-01-03 14:50:13 +11:00
committed by GitHub
8 changed files with 135 additions and 3 deletions

View File

@@ -83,4 +83,11 @@ export const SETTINGS_LABELS: SettingsLabels = {
}, },
}, },
}, },
issues: {
before:
'Falls Sie Probleme mit Local Bible Ref feststellen oder Verbesserungsvorschläge haben, ',
link: 'eröffne Sie bitte ein Issue auf GitHub',
after: '.',
},
}; };

View File

@@ -81,4 +81,11 @@ export const SETTINGS_LABELS: SettingsLabels = {
}, },
}, },
}, },
issues: {
before:
'If you find any issues with Local Bible Ref or have suggestions for improvements, please ',
link: 'open an issue on GitHub',
after: '.',
},
}; };

View File

@@ -0,0 +1,7 @@
import { CommonLabels } from '../models';
export const COMMON_LABELS: CommonLabels = {
folderDoesNotExist: '해당 경로에 폴더가 없습니다.',
settingsNotConfigured:
'로컬 성경 참조 설정이 구성되지 않았습니다. 구절을 참조하기 전에 성경 경로를 설정하십시오.',
};

View File

@@ -1,7 +1,9 @@
import { BOOKS } from './books'; import { BOOKS } from './books';
import { COMMON_LABELS } from './common-labels';
import { SETTINGS_LABELS } from './settings-labels';
export const KO = { export const KO = {
BOOKS, BOOKS,
// COMMON: COMMON_LABELS, COMMON: COMMON_LABELS,
// SETTINGS: SETTINGS_LABELS, SETTINGS: SETTINGS_LABELS,
}; };

View File

@@ -0,0 +1,88 @@
import { PassageFormat } from 'src/passage-reference';
import { SettingsLabels } from '../models';
import { QuoteReferencePosition } from 'src/settings';
export const SETTINGS_LABELS: SettingsLabels = {
required: {
name: '필수 설정',
controls: {
biblesPath: {
name: '성경의 길',
description: '성경책이 들어 있는 폴더의 경로입니다.',
placeholder: '예: 데이터/성경',
},
},
},
optional: {
name: '선택적 설정',
controls: {
defaultVersion: {
name: '기본 버전',
description:
'기본적으로 사용할 버전(약어). 이는 위에서 선택한 성경 폴더 내의 하위 폴더에 해당해야 합니다.',
placeholder: '예: 개역개정',
},
defaultPassageFormat: {
name: '기본 구절 형식',
description: '기본적으로 문단에 사용할 마크다운 형식입니다.',
options: {
[PassageFormat.Manuscript]: '원고',
[PassageFormat.Paragraph]: '절',
[PassageFormat.Quote]: '인용하다',
[PassageFormat.Callout]: '호출',
},
},
bibleFormat: {
name: '성경 형식',
description:
'보관된 성경에 사용하는 서식 스타일입니다. Local Bible Ref는 이 스타일을 기반으로 구절을 정확하게 분석합니다.',
},
},
},
quoteFormat: {
name: '견적 형식 설정',
description: '인용구 형식 설정입니다.',
controls: {
includeReference: {
name: '참조 포함',
description: '해당 구절을 참조로 포함할지 여부.',
},
referencePosition: {
name: '기준 위치',
description: '인용된 텍스트에 대한 참조의 위치.',
options: {
[QuoteReferencePosition.Beginning]: '시작',
[QuoteReferencePosition.End]: '끝',
},
},
linkToPassage: {
name: '통로 바로가기',
description: '보관된 성경의 해당 구절에 참조를 연결할지 여부.',
},
},
},
calloutFormat: {
name: '콜아웃 형식 설정',
description: '설명문 형식 설정입니다.',
controls: {
calloutType: {
name: '콜아웃 유형',
description: '본문에 사용할 콜아웃 유형입니다.',
},
linkToPassage: {
name: '통로 바로가기',
description: '보관된 성경의 해당 구절에 참조를 연결할지 여부.',
},
},
},
issues: {
before:
'Local Bible Ref에 문제가 있거나 개선 사항에 대한 제안이 있는 경우, ',
link: 'GitHub에서 이슈를 열어주세요',
after: '.',
},
};

View File

@@ -59,6 +59,12 @@ export interface SettingsLabels {
linkToPassage: Control; linkToPassage: Control;
}; };
}; };
issues: {
before: string;
link: string;
after?: string;
};
} }
interface Control { interface Control {

View File

@@ -32,6 +32,9 @@ export default class LocalBibleRefSettingTab extends PluginSettingTab {
this.settingsLabels = I18N.DE.SETTINGS; this.settingsLabels = I18N.DE.SETTINGS;
break; break;
case 'ko': case 'ko':
this.folderDoesNotExistText = I18N.KO.COMMON.folderDoesNotExist;
this.settingsLabels = I18N.KO.SETTINGS;
break;
case 'en': case 'en':
default: default:
this.folderDoesNotExistText = I18N.EN.COMMON.folderDoesNotExist; this.folderDoesNotExistText = I18N.EN.COMMON.folderDoesNotExist;
@@ -42,7 +45,7 @@ export default class LocalBibleRefSettingTab extends PluginSettingTab {
display(): void { display(): void {
const { containerEl } = this; const { containerEl } = this;
const { required, optional, quoteFormat, calloutFormat } = const { required, optional, quoteFormat, calloutFormat, issues } =
this.settingsLabels; this.settingsLabels;
containerEl.empty(); containerEl.empty();
@@ -250,6 +253,16 @@ export default class LocalBibleRefSettingTab extends PluginSettingTab {
await this.plugin.saveSettings(); await this.plugin.saveSettings();
}) })
); );
const issuesLink = document.createElement('a');
issuesLink.href = 'https://github.com/camelChief/local-bible-ref/issues';
issuesLink.textContent = issues.link;
const issuesNote = new Setting(containerEl)
.setDesc(issues.before)
.setHeading().descEl;
issuesNote.append(issuesLink);
issuesNote.append(issues.after ?? '');
} }
} }

View File

@@ -31,6 +31,8 @@ export default class PassageSuggest extends EditorSuggest<PassageSuggestion> {
this.settingsNotConfiguredText = I18N.DE.COMMON.settingsNotConfigured; this.settingsNotConfiguredText = I18N.DE.COMMON.settingsNotConfigured;
break; break;
case 'ko': case 'ko':
this.settingsNotConfiguredText = I18N.KO.COMMON.settingsNotConfigured;
break;
case 'en': case 'en':
default: default:
this.settingsNotConfiguredText = I18N.EN.COMMON.settingsNotConfigured; this.settingsNotConfiguredText = I18N.EN.COMMON.settingsNotConfigured;