Skip to content

10 update gettext along with kanta#12

Open
jk-lamb wants to merge 10 commits intodevelopfrom
10-update-gettext-along-with-kanta
Open

10 update gettext along with kanta#12
jk-lamb wants to merge 10 commits intodevelopfrom
10-update-gettext-along-with-kanta

Conversation

@jk-lamb
Copy link

@jk-lamb jk-lamb commented Sep 30, 2025

This PR includes a variety of updates and fixes, including:

  • Dependencies:
    • Updates Tailwind to 3.4.17.
    • Updates to Gettext >= 0.26.
  • Localization:
    • Replaces the unmaintained set_locale package with a custom plug.
    • Adds a es-es locale PO file.
    • Removes Ecto error translations and updates homepage translations.
  • Configuration:
    • Updates .gitignore.
    • Updates endpoint.ex.
    • Updates root.html.heex.
    • Updates dev.exs.

Old configuration:

`import KantaTestWeb.Gettext`

New configuration:

`use Gettext, backend: KantaTestWeb.Gettext`
@jk-lamb jk-lamb requested a review from arturz September 30, 2025 02:03
@jk-lamb jk-lamb linked an issue Sep 30, 2025 that may be closed by this pull request
Old configuration:

`import KantaTestWeb.Gettext`

New configuration:

`use Gettext, backend: KantaTestWeb.Gettext`
The set_locale package is unmaintained and incompatible with Gettext
1.0+. This commit replaces it with a custom SetLocale plug that provides
the same functionality while supporting modern Gettext versions.

Changes: - Add KantaTestWeb.Plugs.SetLocale with locale detection from
URL params and cookies - Remove set_locale dependency from mix.exs -
Update router to use custom plug instead of set_locale - Downgrade
Phoenix from 1.8 to 1.7 to maintain compatibility with Kanta
Enable HEEX annotations in dev environment
Activate LiveDebugger
Activate Tidewave
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Update Gettext along with Kanta

1 participant