-
Notifications
You must be signed in to change notification settings - Fork 1.4k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
feat(www): localize new contact view (#1735)
* Localize the `SupportForm` component. * Remove duplicate required fields helper. * Localize the `ContactView` component. * Localize the intro messages. * Use existing "Submit" and "Cancel" messages. * Fix import for `LocalizeFunc`. * Move issue type constant into `issue_type.ts`. * Rename `LocalizeFunc` to `Localizer`. * Import types only. * Add a TODO comment to consider moving `localizeWithUrl` to some centralized place. * Actually pass through the `localize` property. * Fix tests that rely on localization. * Update the original message files. * Add "Yes" and "No" to original messages file.
- Loading branch information
Showing
19 changed files
with
298 additions
and
144 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,12 @@ | ||
import {PrimitiveType, FormatXMLElementFn} from 'intl-messageformat'; | ||
|
||
export type FormattableMessage = | ||
| string | ||
| symbol | ||
| object | ||
| PrimitiveType | ||
| FormatXMLElementFn<symbol | object, string | symbol | object | (string | symbol | object)[]>; | ||
|
||
export interface Localizer { | ||
(messageID: string, ...formatKeyValueList: FormattableMessage[]): string; | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.