feat(email): add theme language file with preheader copy
This commit is contained in:
@@ -395,7 +395,7 @@ git commit -m "test(email): structural regression guard for partial imports + pr
|
|||||||
**Interfaces:**
|
**Interfaces:**
|
||||||
- Produces: the `[[email:<name>.preheader]]` keys referenced by every template's preheader. Tasks 3, 6–9 reference these.
|
- Produces: the `[[email:<name>.preheader]]` keys referenced by every template's preheader. Tasks 3, 6–9 reference these.
|
||||||
|
|
||||||
- [ ] **Step 1: Create the language file with one preheader key per template**
|
- [x] **Step 1: Create the language file with one preheader key per template**
|
||||||
|
|
||||||
```json
|
```json
|
||||||
{
|
{
|
||||||
@@ -412,7 +412,7 @@ git commit -m "test(email): structural regression guard for partial imports + pr
|
|||||||
}
|
}
|
||||||
```
|
```
|
||||||
|
|
||||||
- [ ] **Step 2: Register the languages directory in `plugin.json`**
|
- [x] **Step 2: Register the languages directory in `plugin.json`**
|
||||||
|
|
||||||
Add a `"languages"` key alongside the existing `"templates": "templates"` key:
|
Add a `"languages"` key alongside the existing `"templates": "templates"` key:
|
||||||
|
|
||||||
@@ -426,7 +426,9 @@ Add a `"languages"` key alongside the existing `"templates": "templates"` key:
|
|||||||
Run: `./nodebb build` then re-send the `reset` test email.
|
Run: `./nodebb build` then re-send the `reset` test email.
|
||||||
Expected: build clean; the inbox preview shows "Reset your Shadows Over Westgate password", not the raw key.
|
Expected: build clean; the inbox preview shows "Reset your Shadows Over Westgate password", not the raw key.
|
||||||
|
|
||||||
- [ ] **Step 4: Commit**
|
Task 5 note: not run from this theme repo; there is no `./nodebb` executable here. JSON syntax was validated locally and `node scripts/check-emails.js` was run.
|
||||||
|
|
||||||
|
- [x] **Step 4: Commit**
|
||||||
|
|
||||||
```bash
|
```bash
|
||||||
git add languages/en-GB/email.json plugin.json
|
git add languages/en-GB/email.json plugin.json
|
||||||
|
|||||||
@@ -0,0 +1,12 @@
|
|||||||
|
{
|
||||||
|
"reset.preheader": "Reset your Shadows Over Westgate password",
|
||||||
|
"welcome.preheader": "Confirm your email to enter Shadows Over Westgate",
|
||||||
|
"verify-email.preheader": "Confirm your new email address",
|
||||||
|
"reset_notify.preheader": "Your Shadows Over Westgate password was changed",
|
||||||
|
"registration_accepted.preheader": "Your Shadows Over Westgate account is approved",
|
||||||
|
"invitation.preheader": "You have been invited to Shadows Over Westgate",
|
||||||
|
"banned.preheader": "Your Shadows Over Westgate account status has changed",
|
||||||
|
"test.preheader": "Test email from Shadows Over Westgate",
|
||||||
|
"notification.preheader": "You have a new notification on Shadows Over Westgate",
|
||||||
|
"digest.preheader": "Your Shadows Over Westgate activity digest"
|
||||||
|
}
|
||||||
@@ -12,6 +12,7 @@
|
|||||||
],
|
],
|
||||||
"scripts": ["public/client.js", "../nodebb-theme-harmony/public/harmony.js"],
|
"scripts": ["public/client.js", "../nodebb-theme-harmony/public/harmony.js"],
|
||||||
"templates": "templates",
|
"templates": "templates",
|
||||||
|
"languages": "languages",
|
||||||
"modules": {
|
"modules": {
|
||||||
"../admin/plugins/theme-quickstart.js": "../nodebb-theme-harmony/public/admin.js",
|
"../admin/plugins/theme-quickstart.js": "../nodebb-theme-harmony/public/admin.js",
|
||||||
"../client/account/theme.js": "../nodebb-theme-harmony/public/settings.js"
|
"../client/account/theme.js": "../nodebb-theme-harmony/public/settings.js"
|
||||||
|
|||||||
Reference in New Issue
Block a user