UNPKG

@leancodepl/mail-translation

Version:

A command-line tool for processing MJML and plaintext email templates with optional internationalization support

191 lines (128 loc) 8.93 kB
# Change Log All notable changes to this project will be documented in this file. See [Conventional Commits](https://conventionalcommits.org) for commit guidelines. ## [9.6.6](https://github.com/leancodepl/js_corelibrary/compare/v9.6.5...v9.6.6) (2025-11-18) **Note:** Version bump only for package @leancodepl/mail-translation # Change Log All notable changes to this project will be documented in this file. See [Conventional Commits](https://conventionalcommits.org) for commit guidelines. ## [9.6.5](https://github.com/leancodepl/js_corelibrary/compare/v9.6.4...v9.6.5) (2025-10-16) **Note:** Version bump only for package @leancodepl/mail-translation # Change Log All notable changes to this project will be documented in this file. See [Conventional Commits](https://conventionalcommits.org) for commit guidelines. ## [9.6.4](https://github.com/leancodepl/js_corelibrary/compare/v9.6.3...v9.6.4) (2025-10-16) **Note:** Version bump only for package @leancodepl/mail-translation # Change Log All notable changes to this project will be documented in this file. See [Conventional Commits](https://conventionalcommits.org) for commit guidelines. ## [9.6.3](https://github.com/leancodepl/js_corelibrary/compare/v9.6.2...v9.6.3) (2025-09-22) **Note:** Version bump only for package @leancodepl/mail-translation # Change Log All notable changes to this project will be documented in this file. See [Conventional Commits](https://conventionalcommits.org) for commit guidelines. ## [9.6.2](https://github.com/leancodepl/js_corelibrary/compare/v9.6.1...v9.6.2) (2025-09-09) **Note:** Version bump only for package @leancodepl/mail-translation # Change Log All notable changes to this project will be documented in this file. See [Conventional Commits](https://conventionalcommits.org) for commit guidelines. ## [9.6.1](https://github.com/leancodepl/js_corelibrary/compare/v9.6.0...v9.6.1) (2025-09-05) **Note:** Version bump only for package @leancodepl/config # Change Log All notable changes to this project will be documented in this file. See [Conventional Commits](https://conventionalcommits.org) for commit guidelines. # [9.6.0](https://github.com/leancodepl/js_corelibrary/compare/v9.5.3...v9.6.0) (2025-09-05) **Note:** Version bump only for package @leancodepl/mail-translation # Change Log All notable changes to this project will be documented in this file. See [Conventional Commits](https://conventionalcommits.org) for commit guidelines. ## [9.5.3](https://github.com/leancodepl/js_corelibrary/compare/v9.5.2...v9.5.3) (2025-08-26) **Note:** Version bump only for package @leancodepl/mail-translation # Change Log All notable changes to this project will be documented in this file. See [Conventional Commits](https://conventionalcommits.org) for commit guidelines. ## [9.5.2](https://github.com/leancodepl/js_corelibrary/compare/v9.5.1...v9.5.2) (2025-08-13) **Note:** Version bump only for package @leancodepl/mail-translation # Change Log All notable changes to this project will be documented in this file. See [Conventional Commits](https://conventionalcommits.org) for commit guidelines. ## [9.5.1](https://github.com/leancodepl/js_corelibrary/compare/v9.5.0...v9.5.1) (2025-08-05) **Note:** Version bump only for package @leancodepl/mail-translation # Change Log All notable changes to this project will be documented in this file. See [Conventional Commits](https://conventionalcommits.org) for commit guidelines. # [9.5.0](https://github.com/leancodepl/js_corelibrary/compare/v9.4.0...v9.5.0) (2025-08-05) **Note:** Version bump only for package @leancodepl/mail-translation # Change Log All notable changes to this project will be documented in this file. See [Conventional Commits](https://conventionalcommits.org) for commit guidelines. # [9.4.0](https://github.com/leancodepl/js_corelibrary/compare/v9.3.0...v9.4.0) (2025-08-04) **Note:** Version bump only for package @leancodepl/mail-translation # Change Log All notable changes to this project will be documented in this file. See [Conventional Commits](https://conventionalcommits.org) for commit guidelines. # [9.3.0](https://github.com/leancodepl/js_corelibrary/compare/v9.2.1...v9.3.0) (2025-07-31) **Note:** Version bump only for package @leancodepl/mail-translation # Change Log All notable changes to this project will be documented in this file. See [Conventional Commits](https://conventionalcommits.org) for commit guidelines. ## [9.2.1](https://github.com/leancodepl/js_corelibrary/compare/v9.2.0...v9.2.1) (2025-07-30) **Note:** Version bump only for package @leancodepl/mail-translation # Change Log All notable changes to this project will be documented in this file. See [Conventional Commits](https://conventionalcommits.org) for commit guidelines. # [9.2.0](https://github.com/leancodepl/js_corelibrary/compare/v9.1.0...v9.2.0) (2025-07-24) ### Bug Fixes - add empty lines at the end to test examples ([a5872b8](https://github.com/leancodepl/js_corelibrary/commit/a5872b8d0059968f9b7a7c09ea77429c3042cac6)) - add newline at the end of schema.json ([ef4eb59](https://github.com/leancodepl/js_corelibrary/commit/ef4eb598320c119ff775cd4a99e31c334218aa05)) - building and publishing mail-translation package ([88acaa6](https://github.com/leancodepl/js_corelibrary/commit/88acaa6bbe1e08f5a510479411250a9bf5ad9d29)) - export only processTemplate functionality ([cf2ab8b](https://github.com/leancodepl/js_corelibrary/commit/cf2ab8bb769d2712b0162772fd8c6e86beecec72)) - handling no translations and no default language ([8e64bfd](https://github.com/leancodepl/js_corelibrary/commit/8e64bfdf9ef3226006ffeced47ab4eb0dd30ff66)) - include all css at rules for razor escaping ([274ac88](https://github.com/leancodepl/js_corelibrary/commit/274ac88a38245bcd31020adedecf34634a7acca3)) - include schema.json usage examples in readme ([2bb9009](https://github.com/leancodepl/js_corelibrary/commit/2bb90093a7f56f424af94dc4e246c430652b30da)) - including common mjml templates ([ac4dad0](https://github.com/leancodepl/js_corelibrary/commit/ac4dad018b717654e9756cfd316e2178ab58b4e7)) - leave only simple interpolations in translations ([3e57b3f](https://github.com/leancodepl/js_corelibrary/commit/3e57b3f178b00a1e23b4c2645af20f7737b0a191)) - mail-translation package version ([2c70fbd](https://github.com/leancodepl/js_corelibrary/commit/2c70fbdadc89ed355840b2c9777efb742b1a989a)) - remove package.json config reference from readme ([5f56832](https://github.com/leancodepl/js_corelibrary/commit/5f56832fecf7d333873c56df412c9ca8a00e1ea0)) - resolving cheerio dependencies ([c08303f](https://github.com/leancodepl/js_corelibrary/commit/c08303f3eb0dffea1a5ea66be1d3f81305d6849a)) - simplify generating kratos output ([bbab869](https://github.com/leancodepl/js_corelibrary/commit/bbab86941dfbc71ab275a716d1fa24a8a1f9e79b)) - simplify ProcessedTemplate interface ([d494888](https://github.com/leancodepl/js_corelibrary/commit/d494888b081cd381caef393f832febb95b7cd972)) - translations template and parsing parameters ([2dbd6f5](https://github.com/leancodepl/js_corelibrary/commit/2dbd6f531479aa3f28adef953c4d0d0409841b1e)) ### Features - add better support for yaml configuration files ([6cf386f](https://github.com/leancodepl/js_corelibrary/commit/6cf386f5a68ae595001024926d8cae8fbe9fb261)) - add handling plaintext templates ([93bab30](https://github.com/leancodepl/js_corelibrary/commit/93bab30feef7124b09be57f8f2ce15be1cf0758c)) - add overriding kratos language variable ([8d810db](https://github.com/leancodepl/js_corelibrary/commit/8d810dbf2f5cbd21765bd5f7bab8125ee7364bea)) - escape [@media](https://github.com/media) and [@import](https://github.com/import) statement in razor outputs ([f960be6](https://github.com/leancodepl/js_corelibrary/commit/f960be6dd395486e97a9aa760919f66395a87c29)) - export config schema ([5cdd27c](https://github.com/leancodepl/js_corelibrary/commit/5cdd27cdd44672ca3ecb2f9a857b1bb729eb21a0)) - generate mails without any translations ([beb4ad0](https://github.com/leancodepl/js_corelibrary/commit/beb4ad00a4d2cbbbf1104be9dc7ca585ca82a0cf)) - initial mail translation tool implementation ([da7f050](https://github.com/leancodepl/js_corelibrary/commit/da7f0501e6696d969d505316b72db215798203a9)) - move generation logic from bin to generate function ([c7f1218](https://github.com/leancodepl/js_corelibrary/commit/c7f12186311a88e1b873d1b505c94a81bc39f898)) - refactor template processing ([10b226b](https://github.com/leancodepl/js_corelibrary/commit/10b226bebe8bd98bcbaaaf794662d32c1d7c80b4)) - test processTemplate and fix folders structure ([50a7c81](https://github.com/leancodepl/js_corelibrary/commit/50a7c81d796a3520c064a09588dd542a86b9b8cf)) - use ICU format and add passing parameters in mjml templates ([fe0bd1c](https://github.com/leancodepl/js_corelibrary/commit/fe0bd1cf6d4c74471e9adddbab0141415a257e60))