Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Feat (i18n) french locale #76

Draft
wants to merge 3 commits into
base: release-0.1.0
Choose a base branch
from

Conversation

gxolin
Copy link

@gxolin gxolin commented Oct 17, 2024

Type
Feature : french sheet internationalization

  • Bug fix
  • Feature
  • Refactor
  • Other (please describe):

Description
adding french locale file + enable it in the config + fix one small typo

Related Issue
Closes #75

How Has This Been Tested?
only localy built. I do NOT have a foundry license and can't test in game.
Also, I don't know if I need to change anything else to enable/toggle the french locale to test it.

Checklist:

  • I have commented on my code, particularly in hard-to-understand areas.
  • My changes do not introduce any new warnings or errors.
  • My PR does not contain any copyrighted works that I do not have permission to use. (translations are my own but the base english sheet is Cosmere RPG copyright)
  • I have tested my changes on Foundry VTT version: [insert version here].

Additional context
For future translators : Deliberately used the english word for the "Focus" Resource. The closest french word, "Concentration" doesn't works well for this resource. Reverted to Focus since it's also used as is in french.

For a full i18n experience, imperial system should be translated to metrics because french can't grasp the imperial system. But this would be a bit more work than just adding a translation file.

@gxolin gxolin changed the base branch from main to release-0.1.0 October 17, 2024 17:49
@@ -122,7 +122,7 @@
"Defense": "Defense",
"SensesRange": "Sense",
"MovementRate": "Move",
"LiftingCapactiy": "Lifting Capactiy",
"LiftingCapacity": "Lifting Capacity",
Copy link
Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

source and i18n key typo

@@ -91,7 +91,7 @@ export const enum Skill {

export const enum DerivedStatistic {
MovementRate = 'mvr',
LiftingCapactiy = 'lif',
LiftingCapacity = 'lif',
Copy link
Author

@gxolin gxolin Oct 17, 2024

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

not related, typo in the code while looking for the i18n key typo

Comment on lines +58 to 62
{
"lang": "fr",
"name": "Français",
"path": "lang/fr.json"
}
Copy link
Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

declaring the new locale

@gxolin
Copy link
Author

gxolin commented Oct 21, 2024

feel free to @ ping me when the source en.json locale file is in a semi-final state, i'll update this PR to match the en.json file :)

@stanavdb
Copy link
Owner

stanavdb commented Nov 1, 2024

Since we're keeping this open until the localisation file is in a somewhat stable state, I'm going to go ahead and convert this to a draft PR. I'll @ ping when there's not too many more changes to the localisation file.

@stanavdb stanavdb marked this pull request as draft November 1, 2024 16:48
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.

i18n file for French locale
2 participants