diff --git a/src/i18n/de/settings-labels.ts b/src/i18n/de/settings-labels.ts index 4955bea..1e996b6 100644 --- a/src/i18n/de/settings-labels.ts +++ b/src/i18n/de/settings-labels.ts @@ -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: '.', + }, }; diff --git a/src/i18n/en/settings-labels.ts b/src/i18n/en/settings-labels.ts index 4f9d0d5..05b3f35 100644 --- a/src/i18n/en/settings-labels.ts +++ b/src/i18n/en/settings-labels.ts @@ -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: '.', + }, }; diff --git a/src/i18n/ko/common-labels.ts b/src/i18n/ko/common-labels.ts new file mode 100644 index 0000000..b024c0e --- /dev/null +++ b/src/i18n/ko/common-labels.ts @@ -0,0 +1,7 @@ +import { CommonLabels } from '../models'; + +export const COMMON_LABELS: CommonLabels = { + folderDoesNotExist: '해당 경로에 폴더가 없습니다.', + settingsNotConfigured: + '로컬 성경 참조 설정이 구성되지 않았습니다. 구절을 참조하기 전에 성경 경로를 설정하십시오.', +}; diff --git a/src/i18n/ko/index.ts b/src/i18n/ko/index.ts index 551f015..d67efc5 100644 --- a/src/i18n/ko/index.ts +++ b/src/i18n/ko/index.ts @@ -1,7 +1,9 @@ import { BOOKS } from './books'; +import { COMMON_LABELS } from './common-labels'; +import { SETTINGS_LABELS } from './settings-labels'; export const KO = { BOOKS, - // COMMON: COMMON_LABELS, - // SETTINGS: SETTINGS_LABELS, + COMMON: COMMON_LABELS, + SETTINGS: SETTINGS_LABELS, }; diff --git a/src/i18n/ko/settings-labels.ts b/src/i18n/ko/settings-labels.ts new file mode 100644 index 0000000..bc6715c --- /dev/null +++ b/src/i18n/ko/settings-labels.ts @@ -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: '.', + }, +}; diff --git a/src/i18n/models.ts b/src/i18n/models.ts index f72cece..c486e99 100644 --- a/src/i18n/models.ts +++ b/src/i18n/models.ts @@ -59,6 +59,12 @@ export interface SettingsLabels { linkToPassage: Control; }; }; + + issues: { + before: string; + link: string; + after?: string; + }; } interface Control { diff --git a/src/local-bible-ref-setting-tab.ts b/src/local-bible-ref-setting-tab.ts index d424356..0da2d31 100644 --- a/src/local-bible-ref-setting-tab.ts +++ b/src/local-bible-ref-setting-tab.ts @@ -32,6 +32,9 @@ export default class LocalBibleRefSettingTab extends PluginSettingTab { this.settingsLabels = I18N.DE.SETTINGS; break; case 'ko': + this.folderDoesNotExistText = I18N.KO.COMMON.folderDoesNotExist; + this.settingsLabels = I18N.KO.SETTINGS; + break; case 'en': default: this.folderDoesNotExistText = I18N.EN.COMMON.folderDoesNotExist; @@ -42,7 +45,7 @@ export default class LocalBibleRefSettingTab extends PluginSettingTab { display(): void { const { containerEl } = this; - const { required, optional, quoteFormat, calloutFormat } = + const { required, optional, quoteFormat, calloutFormat, issues } = this.settingsLabels; containerEl.empty(); @@ -250,6 +253,16 @@ export default class LocalBibleRefSettingTab extends PluginSettingTab { 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 ?? ''); } } diff --git a/src/passage-suggest.ts b/src/passage-suggest.ts index 090f138..ac823ba 100644 --- a/src/passage-suggest.ts +++ b/src/passage-suggest.ts @@ -31,6 +31,8 @@ export default class PassageSuggest extends EditorSuggest { this.settingsNotConfiguredText = I18N.DE.COMMON.settingsNotConfigured; break; case 'ko': + this.settingsNotConfiguredText = I18N.KO.COMMON.settingsNotConfigured; + break; case 'en': default: this.settingsNotConfiguredText = I18N.EN.COMMON.settingsNotConfigured;