mirror of
https://github.com/glenndehaan/unifi-voucher-site.git
synced 2026-05-09 08:25:29 +02:00
[PR #46] [MERGED] Feature/i18n #96
Labels
No labels
bug
enhancement
pull-request
question
question
question
wontfix
No milestone
No project
No assignees
1 participant
Notifications
Due date
No due date set.
Dependencies
No dependencies set.
Reference
starred/unifi-voucher-site#96
Loading…
Add table
Add a link
Reference in a new issue
No description provided.
Delete branch "%!s()"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
📋 Pull Request Information
Original PR: https://github.com/glenndehaan/unifi-voucher-site/pull/46
Author: @glenndehaan
Created: 10/14/2024
Status: ✅ Merged
Merged: 10/14/2024
Merged by: @glenndehaan
Base:
master← Head:feature/i18n📝 Commits (7)
79b75cdSetup initial locales folder for translations. Added English translations for email. Added _locales.json for mapping1b1a934Implemented the translation.js module. Implemented the 'TRANSLATION_DEBUG' environment variable. Updated the README.md to include the Translations chapter. Moved en.json to en/email.json to better utilize Crowdin467ce7eImplemented mail translations. Updated debug output from translation.js1bc459dSwapped mail function parameters. Replaced throw errors for log warnings. Implemented fallback language in translation.js. Added express-locale for future web i18n used5c19d0Removed _locales.json implementation. Added language parameter to mail.js. Implemented regex check to translation.js. Added language dropdown to email component. Added languages.jsc3b36b5Implemented the print.json translation file. Added a new print dialog. Moved /print function to a post request. Updated translation.js debug output. Implemented translator within print.js. Fixed typos. Removed unused utils from email and print components render functioneafd7aaUpdated README.md📊 Changes
16 files changed (+308 additions, -57 deletions)
View changed files
📝
README.md(+26 -0)📝
docker-compose.yml(+1 -0)➕
locales/en/email.json(+19 -0)➕
locales/en/print.json(+15 -0)📝
modules/mail.js(+11 -3)📝
modules/print.js(+37 -28)➕
modules/translation.js(+48 -0)📝
modules/variables.js(+1 -0)📝
package-lock.json(+7 -0)📝
package.json(+1 -0)📝
server.js(+38 -5)📝
template/components/email.ejs(+11 -1)➕
template/components/print.ejs(+44 -0)📝
template/email/voucher.ejs(+16 -16)📝
template/voucher.ejs(+26 -4)➕
utils/languages.js(+7 -0)📄 Description
No description provided
🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.