fix: restructure locale keys to use proper nesting for migrate section
The i18n system resolves dots as nested path separators, but migrate keys were flat strings with dots in the key name. Restructure migrate as a nested object with a title sub-key.
This commit is contained in:
@@ -16,7 +16,7 @@ export function migrateGetController(mountPath) {
|
|||||||
return async (request, response, next) => {
|
return async (request, response, next) => {
|
||||||
try {
|
try {
|
||||||
response.render("activitypub-migrate", {
|
response.render("activitypub-migrate", {
|
||||||
title: response.locals.__("activitypub.migrate"),
|
title: response.locals.__("activitypub.migrate.title"),
|
||||||
mountPath,
|
mountPath,
|
||||||
result: null,
|
result: null,
|
||||||
});
|
});
|
||||||
@@ -92,7 +92,7 @@ export function migratePostController(mountPath, pluginOptions) {
|
|||||||
}
|
}
|
||||||
|
|
||||||
response.render("activitypub-migrate", {
|
response.render("activitypub-migrate", {
|
||||||
title: response.locals.__("activitypub.migrate"),
|
title: response.locals.__("activitypub.migrate.title"),
|
||||||
mountPath,
|
mountPath,
|
||||||
result,
|
result,
|
||||||
});
|
});
|
||||||
|
|||||||
+20
-18
@@ -4,7 +4,6 @@
|
|||||||
"followers": "Followers",
|
"followers": "Followers",
|
||||||
"following": "Following",
|
"following": "Following",
|
||||||
"activities": "Activity log",
|
"activities": "Activity log",
|
||||||
"migrate": "Mastodon migration",
|
|
||||||
"recentActivity": "Recent activity",
|
"recentActivity": "Recent activity",
|
||||||
"noActivity": "No activity yet. Once your actor is federated, interactions will appear here.",
|
"noActivity": "No activity yet. Once your actor is federated, interactions will appear here.",
|
||||||
"noFollowers": "No followers yet.",
|
"noFollowers": "No followers yet.",
|
||||||
@@ -20,22 +19,25 @@
|
|||||||
"direction": "Direction",
|
"direction": "Direction",
|
||||||
"directionInbound": "Received",
|
"directionInbound": "Received",
|
||||||
"directionOutbound": "Sent",
|
"directionOutbound": "Sent",
|
||||||
"migrate.aliasLabel": "Your old Mastodon account URL",
|
"migrate": {
|
||||||
"migrate.aliasHint": "e.g. https://mstdn.social/users/rmdes — sets alsoKnownAs on your actor",
|
"title": "Mastodon migration",
|
||||||
"migrate.aliasSave": "Save alias",
|
"step1Title": "Step 1 — Configure actor alias",
|
||||||
"migrate.importLabel": "Import followers and following",
|
"step1Desc": "Link your old Mastodon account to this actor so the fediverse knows they are the same person.",
|
||||||
"migrate.fileLabel": "Mastodon export CSV",
|
"aliasLabel": "Your old Mastodon account URL",
|
||||||
"migrate.fileHint": "Upload following_accounts.csv from your Mastodon data export",
|
"aliasHint": "e.g. https://mstdn.social/users/rmdes — sets alsoKnownAs on your actor",
|
||||||
"migrate.importButton": "Import",
|
"aliasSave": "Save alias",
|
||||||
"migrate.importFollowing": "Import following list",
|
"step2Title": "Step 2 — Import followers/following",
|
||||||
"migrate.importFollowers": "Import followers list (pending until they re-follow after Move)",
|
"step2Desc": "Upload your Mastodon data export CSV to import your social graph.",
|
||||||
"migrate.step1Title": "Step 1 — Configure actor alias",
|
"importLabel": "Import followers and following",
|
||||||
"migrate.step1Desc": "Link your old Mastodon account to this actor so the fediverse knows they are the same person.",
|
"fileLabel": "Mastodon export CSV",
|
||||||
"migrate.step2Title": "Step 2 — Import followers/following",
|
"fileHint": "Upload following_accounts.csv from your Mastodon data export",
|
||||||
"migrate.step2Desc": "Upload your Mastodon data export CSV to import your social graph.",
|
"importButton": "Import",
|
||||||
"migrate.step3Title": "Step 3 — Trigger Move on Mastodon",
|
"importFollowing": "Import following list",
|
||||||
"migrate.step3Desc": "Go to your Mastodon instance → Preferences → Account → Move to a different account. Enter your new handle and confirm. After the Move, followers will automatically re-follow you here.",
|
"importFollowers": "Import followers list (pending until they re-follow after Move)",
|
||||||
"migrate.success": "Imported %d following, %d followers (%d failed).",
|
"step3Title": "Step 3 — Trigger Move on Mastodon",
|
||||||
"migrate.aliasSuccess": "Actor alias updated."
|
"step3Desc": "Go to your Mastodon instance → Preferences → Account → Move to a different account. Enter your new handle and confirm. After the Move, followers will automatically re-follow you here.",
|
||||||
|
"success": "Imported %d following, %d followers (%d failed).",
|
||||||
|
"aliasSuccess": "Actor alias updated."
|
||||||
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|||||||
+1
-1
@@ -1,6 +1,6 @@
|
|||||||
{
|
{
|
||||||
"name": "@rmdes/indiekit-endpoint-activitypub",
|
"name": "@rmdes/indiekit-endpoint-activitypub",
|
||||||
"version": "0.1.3",
|
"version": "0.1.4",
|
||||||
"description": "ActivityPub federation endpoint for Indiekit via Fedify. Adds full fediverse support: actor, inbox, outbox, followers, following, syndication, and Mastodon migration.",
|
"description": "ActivityPub federation endpoint for Indiekit via Fedify. Adds full fediverse support: actor, inbox, outbox, followers, following, syndication, and Mastodon migration.",
|
||||||
"keywords": [
|
"keywords": [
|
||||||
"indiekit",
|
"indiekit",
|
||||||
|
|||||||
@@ -23,7 +23,7 @@
|
|||||||
url: mountPath + "/admin/activities"
|
url: mountPath + "/admin/activities"
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
title: __("activitypub.migrate"),
|
title: __("activitypub.migrate.title"),
|
||||||
url: mountPath + "/admin/migrate"
|
url: mountPath + "/admin/migrate"
|
||||||
}
|
}
|
||||||
]}) }}
|
]}) }}
|
||||||
|
|||||||
Reference in New Issue
Block a user