Ghost/ghost
Ronald Langeveld 4fcaabe563
Added initial i18n implementation for Signup-form (#16914)
closes https://github.com/TryGhost/Team/issues/3307

This commit includes several important updates to add internationalisation (i18n) support within the signup form package:

- Modified the translate script in `package.json` to include translations for the signup form.
- Added a new test for the signup form resources in `i18n.test.js`.
- Updated `tsconfig.json` to allow synthetic default imports.
- Made updates to `package.json`, including adding a prebuild command for `@tryghost/i18n` to ensure typescript declaration files get built.
- added `vite-plugin-commonjs` so we can bundle commonjs packages to be useable by the browser.
- In `App.tsx`, imported the `i18n` library and created an `i18n` instance for the `signup-form` namespace. This `i18n` instance's `t` function was added to the application context.
- Updated the `AppContextType` in `AppContext.ts` to include the `t` function from i18n​

Co-authored-by: Daniel Lockyer <hi@daniellockyer.com>
2023-06-02 11:02:52 +02:00
..
adapter-cache-memory-ttl
adapter-cache-redis
adapter-manager
admin Update dependency @embroider/macros to v1.11.0 2023-06-02 11:01:47 +02:00
admin-x-settings Added multiselect to AdminX Design System 2023-06-02 10:54:25 +02:00
announcement-bar Bumped eslint-plugin-ghost (#16906) 2023-05-31 16:36:32 -04:00
announcement-bar-settings
api-framework
api-version-compatibility-service
audience-feedback
bootstrap-socket
collections Update dependency typescript to v5.1.3 2023-06-02 09:06:20 +02:00
constants
core Bumped @tryghost/kg-lexical-html-renderer 2023-06-02 09:54:12 +01:00
custom-theme-settings-service
data-generator
domain-events
dynamic-routing-events
email-analytics-provider-mailgun
email-analytics-service
email-content-generator
email-events
email-service Added emailCustomization flag and removed makeItRain flag (#16903) 2023-06-01 12:32:37 +01:00
email-suppression-list
event-aware-cache-wrapper
express-dynamic-redirects
external-media-inliner
extract-api-key
html-to-plaintext
i18n Added initial i18n implementation for Signup-form (#16914) 2023-06-02 11:02:52 +02:00
importer-handler-content-files
importer-revue Bumped koenig related packages 2023-05-30 08:00:42 +02:00
in-memory-repository Update dependency typescript to v5.1.3 2023-06-02 09:06:20 +02:00
job-manager Update dependency @sinonjs/fake-timers to v10.2.0 2023-06-02 11:01:51 +02:00
link-redirects
link-replacer
link-tracking
magic-link Update dependency @types/nodemailer to v6.4.8 2023-06-02 11:01:12 +02:00
mailgun-client Update dependency mailgun.js to v8.2.2 2023-05-30 06:54:20 +00:00
member-attribution Added signup form attribution (#16899) 2023-06-01 10:18:11 +02:00
member-events
members-api
members-csv
members-events-service
members-importer
members-ssr
mentions-email-report
milestones
minifier
mw-api-version-mismatch
mw-cache-control
mw-error-handler
mw-session-from-token
mw-update-user-last-seen
mw-version-match
mw-vhost
oembed-service Update dependency @extractus/oembed-extractor to v3.1.9 2023-05-30 12:28:56 +02:00
offers
package-json
payments
portal Update sentry-javascript monorepo to v7.54.0 2023-06-02 09:06:32 +02:00
post-revisions Update dependency typescript to v5.1.3 2023-06-02 09:06:20 +02:00
posts-service
referrers
security
session-service
settings-path-manager
signup-form Added initial i18n implementation for Signup-form (#16914) 2023-06-02 11:02:52 +02:00
slack-notifications
sodo-search Bumped eslint-plugin-ghost (#16906) 2023-05-31 16:36:32 -04:00
staff-service
stats-service
stripe
tiers
update-check-service
verification-trigger
version-notifications-data-service
webmentions