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

Guard translation methods with typescript to protect against invalid usage #26021

Merged
merged 3 commits into from
Aug 22, 2023

Conversation

t3chguy
Copy link
Member

@t3chguy t3chguy commented Aug 21, 2023

Recommendation is to pretend the first commit doesn't exist as it is a necessary awful to ensure typescript uses the literal string type vs string - without this we cannot have types protect us from accidentally breaking keys during the great re-keying in the move to Localazy.

Requires matrix-org/matrix-react-sdk#11443


This change is marked as an internal change (Task), so will not be included in the changelog.

@t3chguy t3chguy added the T-Task Tasks for the team like planning label Aug 21, 2023
@t3chguy t3chguy changed the title Unwrap string literals for Typescript to be happy Guard translation methods with typescript to protect against invalid usage Aug 21, 2023
@t3chguy t3chguy self-assigned this Aug 21, 2023
@t3chguy t3chguy marked this pull request as ready for review August 21, 2023 15:41
@t3chguy t3chguy requested a review from a team as a code owner August 21, 2023 15:41
@t3chguy t3chguy merged commit 469d11f into develop Aug 22, 2023
15 of 16 checks passed
@t3chguy t3chguy deleted the t3chguy/localazy-i18n-types branch August 22, 2023 15:32
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
T-Task Tasks for the team like planning
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants