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

[Feature] Localization Implementation #2

Merged
merged 49 commits into from
Aug 14, 2024
Merged

[Feature] Localization Implementation #2

merged 49 commits into from
Aug 14, 2024

Conversation

chatterchats
Copy link
Contributor

@chatterchats chatterchats commented Aug 12, 2024

Description

Implemented the Foundry Localization system.

Type of change

  • New feature (non-breaking change which adds functionality)

How Has This Been Tested?

Verified that all implemented sections of the Player Character Sheet were properly pulling from the localization files.

Test Configuration:

  • Foundry Version: 12.330
  • OS: Windows 11

Checklist:

  • My code follows the style guidelines of this project
  • I have performed a self-review of my code
  • My changes generate no new warnings

fixes #3

Copy link
Contributor Author

@chatterchats chatterchats left a comment

Choose a reason for hiding this comment

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

Lots of things that I didn't personally touch, due to linting it looks like. Primary files were

  • rollup.config.js (Included src/lang and src/fonts in copy)
  • src/system.json (Added languages section)
  • src/index.ts (Localization of Sheet Labels)
  • src/templates/*.hbs (Converted to {{ localize }} for labels)
  • src/system/config.ts (Labels to i18n path)
  • src/system/types/cosmere.ts (enum values to 18n paths were relevant)
  • src/system/dict/plot-die.ts (localization of Complication and Opportunity)

@chatterchats chatterchats changed the title [Feat] Localization Implementation [Feature] Localization Implementation Aug 13, 2024
@stanavdb
Copy link
Collaborator

stanavdb commented Aug 13, 2024

I apologize for dumping another merge on you, but after this everything should match as per lint and prettier config.

Can you change the base to release-0.1.0?

Will review ASAP

@chatterchats chatterchats changed the base branch from main to release-0.1.0 August 14, 2024 01:38
# Conflicts:
#	.github/workflows/lint.yml
#	eslint.config.mjs
#	rollup.config.js
#	src/declarations/foundry/client/config.d.ts
#	src/declarations/foundry/client/data/abstract/client-document.d.ts
#	src/declarations/foundry/client/data/documents/actor.d.ts
#	src/declarations/foundry/client/data/documents/item.d.ts
#	src/declarations/foundry/client/dice/roll.d.ts
#	src/declarations/foundry/common/abstract/data.d.ts
#	src/declarations/foundry/common/documents/actor.d.ts
#	src/declarations/foundry/common/documents/chat-message.d.ts
#	src/declarations/foundry/common/documents/item.d.ts
#	src/index.ts
#	src/style.scss
#	src/style/sheets/actor/character.scss
#	src/style/sheets/module.scss
#	src/style/sheets/sheet.scss
#	src/system.json
#	src/system/applications/actor/base-sheet.ts
#	src/system/applications/actor/character-sheet.ts
#	src/system/applications/actor/index.ts
#	src/system/applications/index.ts
#	src/system/config.ts
#	src/system/data/actor/common.ts
#	src/system/data/actor/index.ts
#	src/system/data/index.ts
#	src/system/data/item/action.ts
#	src/system/data/item/ancestry.ts
#	src/system/data/item/equipment.ts
#	src/system/data/item/fabrial.ts
#	src/system/data/item/index.ts
#	src/system/data/item/mixins/damaging.ts
#	src/system/data/item/mixins/description.ts
#	src/system/data/item/mixins/equippable.ts
#	src/system/data/item/mixins/id.ts
#	src/system/data/item/mixins/physical.ts
#	src/system/data/item/mixins/typed.ts
#	src/system/data/item/path.ts
#	src/system/data/item/talent.ts
#	src/system/data/item/weapon.ts
#	src/system/dice/d20-roll.ts
#	src/system/dice/index.ts
#	src/system/dice/plot-die.ts
#	src/system/dice/types.ts
#	src/system/documents/actor.ts
#	src/system/documents/index.ts
#	src/system/types/config.ts
#	src/system/types/roll.ts
@chatterchats
Copy link
Contributor Author

@stanavdb Changed base to release-0.1.0, resolved merge conflicts, and retested to ensure functionality! Should be good for review

lint-staged-config.mjs Outdated Show resolved Hide resolved
src/fonts/CosmereDingbats-Regular.otf Outdated Show resolved Hide resolved
src/lang/en.json Outdated Show resolved Hide resolved
src/system/types/cosmere.ts Outdated Show resolved Hide resolved
src/lang/en.json Show resolved Hide resolved
@chatterchats chatterchats requested a review from stanavdb August 14, 2024 16:43
src/lang/en.json Outdated Show resolved Hide resolved
@stanavdb stanavdb self-requested a review August 14, 2024 17:20
@stanavdb stanavdb merged commit fd3c7db into the-metalworks:release-0.1.0 Aug 14, 2024
1 check passed
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.

[Feature Request]: Implement Localization
2 participants