mirror of
https://github.com/btouchard/ackify-ce.git
synced 2026-02-08 14:58:36 -06:00
Add comprehensive internationalization support: - Browser language detection via Accept-Language header - Cookie-based language preference persistence (1 year) - Language switcher with flag emojis (🇫🇷 🇬🇧) - 71 translation keys covering all UI elements - Context-based translation injection via middleware Replace Tailwind CDN with production build: - Tailwind CLI v3.4.16 for CSS compilation - Minified CSS output (5.9KB from several MB) - Docker build integration - Custom color palette configuration Update all templates with i18n support: - Main pages: home, sign, signatures, error - Admin dashboard and document details - Embed iframe widget (English only for international use) - Language switcher preserves current page URL Technical implementation: - golang.org/x/text for language matching - Middleware pattern for consistent i18n injection - Fallback chain: Cookie → Accept-Language → English - Separate translation files (locales/fr.json, locales/en.json)
26 lines
760 B
Modula-2
26 lines
760 B
Modula-2
module github.com/btouchard/ackify-ce
|
|
|
|
go 1.24.5
|
|
|
|
require (
|
|
github.com/go-chi/chi/v5 v5.2.3
|
|
github.com/golang-migrate/migrate/v4 v4.19.0
|
|
github.com/gorilla/securecookie v1.1.2
|
|
github.com/gorilla/sessions v1.4.0
|
|
github.com/lib/pq v1.10.9
|
|
github.com/stretchr/testify v1.11.1
|
|
golang.org/x/oauth2 v0.31.0
|
|
)
|
|
|
|
require (
|
|
github.com/davecgh/go-spew v1.1.1 // indirect
|
|
github.com/hashicorp/errwrap v1.1.0 // indirect
|
|
github.com/hashicorp/go-multierror v1.1.1 // indirect
|
|
github.com/kr/pretty v0.3.1 // indirect
|
|
github.com/pmezard/go-difflib v1.0.0 // indirect
|
|
github.com/rogpeppe/go-internal v1.13.1 // indirect
|
|
golang.org/x/text v0.29.0 // indirect
|
|
gopkg.in/check.v1 v1.0.0-20201130134442-10cb98267c6c // indirect
|
|
gopkg.in/yaml.v3 v3.0.1 // indirect
|
|
)
|