-
Notifications
You must be signed in to change notification settings - Fork 42
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
Add test for placeholders in translations #3387
Conversation
|
Storybook demo38a7d188d | 91 komponenter | 135 stories |
baseTrans: Translations | NestedValue, // Translations to check against | ||
trans: Translations | NestedValue, // Translations to check |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Don't feel the shortening adds anything here
baseTrans: Translations | NestedValue, // Translations to check against | |
trans: Translations | NestedValue, // Translations to check | |
baseTranslation: Translations | NestedValue, // Translations to check against | |
translations: Translations | NestedValue, // Translations to check |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
The reason for "baseTrans" was that I thought it would sometimes be an object and sometimes a string, but I just realized that it won't 😄
@@ -19,8 +21,34 @@ function checkValues(obj: Translations | Record<string, string>) { | |||
}); | |||
} | |||
|
|||
function checkPlaceholders( |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
function checkPlaceholders( | |
function checkTranslationPlaceholders( |
No description provided.