@ossy/email 1.5.7 → 1.6.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (3) hide show
  1. package/CHANGELOG.md +11 -0
  2. package/README.md +20 -0
  3. package/package.json +2 -2
package/CHANGELOG.md CHANGED
@@ -3,6 +3,17 @@
3
3
  All notable changes to this project will be documented in this file.
4
4
  See [Conventional Commits](https://conventionalcommits.org) for commit guidelines.
5
5
 
6
+ # 1.6.0 (2026-05-31)
7
+
8
+
9
+ ### Features
10
+
11
+ * enhance documentation and localization support across the platform ([9b0ca0a](https://github.com/ossy-se/ossy/commit/9b0ca0a5ae6e9676428900428eacbe7457498f2f))
12
+
13
+
14
+
15
+
16
+
6
17
  ## 1.5.7 (2026-05-31)
7
18
 
8
19
  **Note:** Version bump only for package @ossy/email
package/README.md CHANGED
@@ -194,6 +194,26 @@ export async function run({ event, integrations }) {
194
194
  | `send` | `({ to, from, subject, html, text }) => Promise` | Send a raw HTML/text email via SES. |
195
195
  | `sendTemplate` | `(Component, props, { to, from, subject }) => Promise` | Render a React component with `EmailRenderer.render` and send via SES. |
196
196
 
197
+ ### Localized email copy
198
+
199
+ Resolve subjects and body strings from the merged build catalog in the action or task that sends the mail — not from hardcoded exports on the template:
200
+
201
+ ```js
202
+ import path from 'node:path'
203
+ import { createTranslatorForBuild } from '@ossy/platform/locale'
204
+
205
+ const buildDir = path.resolve(process.cwd(), 'build')
206
+ const t = createTranslatorForBuild(buildDir, language, { defaultLanguage: 'en' })
207
+
208
+ await email.sendTemplate(
209
+ VerifySignInEmail,
210
+ { token, baseUrl, t },
211
+ { to: email, from: 'noreply@example.com', subject: t('authentication.verifySignIn.subject') },
212
+ )
213
+ ```
214
+
215
+ See [`@ossy/locale` README](../locale/README.md) for the full server-side pattern.
216
+
197
217
  ---
198
218
 
199
219
  ## Using `emailIntegration` directly
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "@ossy/email",
3
3
  "private": false,
4
- "version": "1.5.7",
4
+ "version": "1.6.0",
5
5
  "type": "module",
6
6
  "main": "./src/index.js",
7
7
  "module": "./src/index.js",
@@ -19,5 +19,5 @@
19
19
  "react": "*",
20
20
  "react-dom": "*"
21
21
  },
22
- "gitHead": "f65df0cd6da864c314c4f424112e05e8e2dec0ff"
22
+ "gitHead": "d9d31182be64a448d575da432af2830d909ad4b9"
23
23
  }