mirror of
https://github.com/svemagie/obsidian-micropub.git
synced 2026-05-15 03:48:52 +02:00
fix(i18n): add missing placeholder keys and wire into SettingsTab
This commit is contained in:
+3
-3
@@ -54,7 +54,7 @@ export class MicropubSettingsTab extends PluginSettingTab {
|
||||
.setDesc(t("settingMicropubEndpointDesc"))
|
||||
.addText((text) =>
|
||||
text
|
||||
.setPlaceholder("https://example.com/micropub")
|
||||
.setPlaceholder(t("settingMicropubEndpointPlaceholder"))
|
||||
.setValue(this.plugin.settings.micropubEndpoint)
|
||||
.onChange(async (value) => {
|
||||
this.plugin.settings.micropubEndpoint = value.trim();
|
||||
@@ -67,7 +67,7 @@ export class MicropubSettingsTab extends PluginSettingTab {
|
||||
.setDesc(t("settingMediaEndpointDesc"))
|
||||
.addText((text) =>
|
||||
text
|
||||
.setPlaceholder("https://example.com/micropub/media")
|
||||
.setPlaceholder(t("settingMediaEndpointPlaceholder"))
|
||||
.setValue(this.plugin.settings.mediaEndpoint)
|
||||
.onChange(async (value) => {
|
||||
this.plugin.settings.mediaEndpoint = value.trim();
|
||||
@@ -258,7 +258,7 @@ export class MicropubSettingsTab extends PluginSettingTab {
|
||||
.setDesc(t("settingAccessTokenDesc"))
|
||||
.addText((text) => {
|
||||
text
|
||||
.setPlaceholder("your-bearer-token")
|
||||
.setPlaceholder(t("settingAccessTokenPlaceholder"))
|
||||
.setValue(this.plugin.settings.accessToken)
|
||||
.onChange(async (value) => {
|
||||
this.plugin.settings.accessToken = value.trim();
|
||||
|
||||
@@ -25,8 +25,10 @@ export const de: Record<string, string> = {
|
||||
// Settings — endpoints
|
||||
settingMicropubEndpoint: "Micropub-Endpunkt",
|
||||
settingMicropubEndpointDesc: "z. B. https://example.com/micropub",
|
||||
settingMicropubEndpointPlaceholder: "https://example.com/micropub",
|
||||
settingMediaEndpoint: "Medien-Endpunkt",
|
||||
settingMediaEndpointDesc:"Für Bild-Uploads. Wird automatisch ermittelt, wenn leer.",
|
||||
settingMediaEndpointPlaceholder: "https://example.com/micropub/media",
|
||||
|
||||
// Settings — publish behaviour
|
||||
settingVisibility: "Standard-Sichtbarkeit",
|
||||
@@ -67,6 +69,7 @@ export const de: Record<string, string> = {
|
||||
manualTokenSummary: "Oder Token manuell einfügen",
|
||||
settingAccessToken: "Zugriffstoken",
|
||||
settingAccessTokenDesc: "Bearer-Token aus deinem Indiekit-Adminbereich.",
|
||||
settingAccessTokenPlaceholder: "your-bearer-token",
|
||||
btnVerify: "Prüfen",
|
||||
noticeSetEndpointFirst: "Bitte zuerst Micropub-Endpunkt und Token eingeben.",
|
||||
noticeTokenValid: "✅ Token ist gültig!",
|
||||
|
||||
@@ -25,8 +25,10 @@ export const en: Record<string, string> = {
|
||||
// Settings — endpoints
|
||||
settingMicropubEndpoint: "Micropub endpoint",
|
||||
settingMicropubEndpointDesc: "e.g. https://example.com/micropub", // intentional: replaces personal domain in source
|
||||
settingMicropubEndpointPlaceholder: "https://example.com/micropub",
|
||||
settingMediaEndpoint: "Media endpoint",
|
||||
settingMediaEndpointDesc:"For image uploads. Auto-discovered if blank.",
|
||||
settingMediaEndpointPlaceholder: "https://example.com/micropub/media",
|
||||
|
||||
// Settings — publish behaviour
|
||||
settingVisibility: "Default visibility",
|
||||
@@ -67,6 +69,7 @@ export const en: Record<string, string> = {
|
||||
manualTokenSummary: "Or paste a token manually",
|
||||
settingAccessToken: "Access token",
|
||||
settingAccessTokenDesc: "Bearer token from your Indiekit admin panel.",
|
||||
settingAccessTokenPlaceholder: "your-bearer-token",
|
||||
btnVerify: "Verify",
|
||||
noticeSetEndpointFirst: "Set the Micropub endpoint and token first.",
|
||||
noticeTokenValid: "✅ Token is valid!",
|
||||
|
||||
Reference in New Issue
Block a user