Skip to content

Add French language support - #1501

Open
tiweb442 wants to merge 1 commit into
lanedirt:mainfrom
tiweb442:feature/add-french-language
Open

Add French language support#1501
tiweb442 wants to merge 1 commit into
lanedirt:mainfrom
tiweb442:feature/add-french-language

Conversation

@tiweb442

Copy link
Copy Markdown
Contributor

Summary

  • Registers fr as a supported locale and adds FR to the ingame/outgame language switchers
  • Adds a full French translation set under resources/lang/fr/ (plus fr.json), covering the same keys as English
  • Adds feature tests covering locale registration, preference persistence, and the FR switcher link

Test plan

  • Open /lang/fr (or click FR) as a guest and confirm French outgame strings (e.g. login)
  • Log in, switch to FR, reload, and confirm the preference persists
  • Spot-check overview / resources / fleet pages for French UI copy
  • php artisan test --filter=LanguageSwitchTest

Made with Cursor

Register fr as a supported locale with full translation files and expose FR in the language switchers.

Co-authored-by: Cursor <cursoragent@cursor.com>
@github-actions

Copy link
Copy Markdown

Preview deployment

Preview environment for this PR is ready for functional testing. Use one of the test accounts below to log in.

Status URL Commit Last deployed
✅ Live https://pr-1501.preview.ogamex.dev d23e38b 2026-07-20 02:13:21 UTC
Test accounts (click to expand)
Email (login) Password Role Class Planets Description
test1@ogamex.dev test admin Collector 2 Admin, high resources, mining focus
test2@ogamex.dev test player General 1 Military focus, ships & fleet
test3@ogamex.dev test player Discoverer 1 Exploration, probes & cargo ships
test4@ogamex.dev test player None 1 New player, no class selected yet
test5@ogamex.dev test moderator Collector 1 Moderator, balanced setup
test6@ogamex.dev test player General 1 Vacation mode enabled
test7@ogamex.dev test player General 3 Heavy defense across planets
test8@ogamex.dev test player Discoverer 1 Fleet focus, inactive (i) 8 days
test9@ogamex.dev test player Collector 1 Beginner, long inactive (I) 40 days
test10@ogamex.dev test player General 5 Endgame, 90 unread messages

This preview will be automatically destroyed when the PR is closed.

@Geda173

Geda173 commented Jul 20, 2026

Copy link
Copy Markdown
Collaborator

Your PR description doesn't mention it: are these AI translations or the translations straight from OGame?

@tiweb442

tiweb442 commented Jul 20, 2026 via email

Copy link
Copy Markdown
Contributor Author

@minidevlog59

Copy link
Copy Markdown

Hello, thanks for the translation !
The admin section and the images haven't been translated yet. Ideally, could we update the Cursor prompt to include them ? Thanks in advance !
Regards,
Vincent

@tiweb442

tiweb442 commented Jul 22, 2026 via email

Copy link
Copy Markdown
Contributor Author

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.

3 participants