-
Notifications
You must be signed in to change notification settings - Fork 913
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Modifying html tests to utilize jsx and fixing tests to include all p…
…luginPaths Signed-off-by: Zashary Maskus-Lavin <[email protected]>
- Loading branch information
Showing
11 changed files
with
89 additions
and
181 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
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 was deleted.
Oops, something went wrong.
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
8 changes: 0 additions & 8 deletions
8
src/dev/i18n/__fixtures__/extract_default_translations/test_plugin_1/test_file_4.html
This file was deleted.
Oops, something went wrong.
1 change: 0 additions & 1 deletion
1
src/dev/i18n/__fixtures__/extract_default_translations/test_plugin_2/test_file.html
This file was deleted.
Oops, something went wrong.
12 changes: 12 additions & 0 deletions
12
src/dev/i18n/__fixtures__/extract_default_translations/test_plugin_2/test_file.jsx
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 @@ | ||
/* | ||
* SPDX-License-Identifier: Apache-2.0 | ||
* | ||
* The OpenSearch Contributors require contributions made to | ||
* this file be licensed under the Apache-2.0 license or a | ||
* compatible open source license. | ||
* | ||
* Any modifications Copyright OpenSearch Contributors. See | ||
* GitHub history for details. | ||
*/ | ||
|
||
i18n('plugin_2.message-id', { defaultMessage: 'Message text' }); |
14 changes: 14 additions & 0 deletions
14
src/dev/i18n/__fixtures__/extract_default_translations/test_plugin_4/test_file_4.jsx
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,14 @@ | ||
/* eslint-disable */ | ||
|
||
class Component extends PureComponent { | ||
render() { | ||
return ( | ||
<div data-transclude-slots> | ||
<FormattedMessage | ||
id="plugin_4.id_1" | ||
defaultMessage="Message 4" | ||
/> | ||
</div> | ||
); | ||
} | ||
} |
48 changes: 48 additions & 0 deletions
48
src/dev/i18n/__snapshots__/extract_default_translations.test.js.snap
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Oops, something went wrong.
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