gohorsejobs/frontend
Tiago Yamamoto 55705a0fbb fix(i18n): initialize locale from browser/localStorage and add fallback chain
- Initialize useState with getInitialLocale() instead of hardcoded 'en',
  so the correct locale is used from the very first render
- Default to 'pt-BR' instead of 'en' for SSR and fallback
- Add fallback chain in t(): tries current locale -> pt-BR -> en
- Extract resolveKey() helper for cleaner key resolution
- Cast dictionaries as Record<string, unknown> to avoid type issues
- Wrap localStorage access in try-catch for blocked storage scenarios

Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
2026-02-18 06:02:06 -06:00
..
e2e feat: increase test coverage backend/frontend and setup e2e 2026-01-01 10:54:58 -03:00
messages atualizacao geral de funcionalidades 2026-01-20 12:36:48 -03:00
public chore: database reset, frontend API configuration 2026-02-09 14:11:05 +00:00
seeder-api/sql fix: resolve all merge conflicts in backend 2026-02-14 17:12:56 +00:00
src fix(i18n): initialize locale from browser/localStorage and add fallback chain 2026-02-18 06:02:06 -06:00
.dockerignore perf(docker): migrate frontend to pnpm + optimize dockerignore 2025-12-28 11:20:33 -03:00
.env.example docs: add clearer warning about NEXT_PUBLIC_API_URL format 2025-12-24 00:20:43 -03:00
.gitignore feat: increase test coverage backend/frontend and setup e2e 2026-01-01 10:54:58 -03:00
.npmrc
.stylelintrc.json
components.json
CONVENTIONS.md Add architecture and frontend documentation anchors 2026-02-09 22:14:36 -03:00
DESIGN_SYSTEM.md docs(frontend): add design system guide for consistent UI changes 2026-02-12 16:34:19 -03:00
Dockerfile fix: corrige URLs do frontend para HTTPS e SSL do seeder 2026-02-17 10:14:57 -06:00
eslint.config.mjs fix: corrige erros de tipagem no build do frontend 2026-02-16 16:07:09 -06:00
FRONTEND.md refactor job posting routes and add dashboard job creation page 2026-02-17 09:42:31 -03:00
jest.config.js feat(tests): implement unit tests for job post and application forms and fix dashboard tests 2026-01-01 11:15:32 -03:00
jest.setup.js
next.config.ts Update infrastructure and frontend configuration 2026-02-11 13:24:12 +00:00
package-lock.json Refine migrations flow and lint tooling across apps 2026-02-14 15:42:40 -03:00
package.json Refine migrations flow and lint tooling across apps 2026-02-14 15:42:40 -03:00
playwright.config.ts feat: increase test coverage backend/frontend and setup e2e 2026-01-01 10:54:58 -03:00
pnpm-lock.yaml chore: update pnpm lockfiles for CI frozen installs 2026-02-14 15:57:54 -03:00
postcss.config.mjs
RESPONSIVENESS_AND_I18N_IMPROVEMENTS.md att layout 2026-01-21 12:33:57 -03:00
tsconfig.json
wrangler.toml erro de deploy corrigido 2026-01-23 15:20:21 -03:00