Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Refactor locale scripts & generate types and docs (#3276)
Closes #3232 ### Summary - Create `locale.js` for every plugin instead of `this.defaultLocale` in the class - Complete refactor of locale scripts - No dynamic plugin class imports with hacks to mimic the environment in order to get the `defaultLocale`. - Separate tests and build in separate files - Add two modes for test file, `unused` (fails hard) and `warnings` - Generate docs - Use remark to cleanly mutate the file - Rename some doc files to match the plugin name (such as `statusbar` --> `status-bar`) - Comments in `locale.js` are kept and are present in the docs as well. - Generate types
- Loading branch information
Showing
67 changed files
with
1,177 additions
and
883 deletions.
There are no files selected for viewing
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
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,5 @@ | ||
module.exports = { | ||
strings: { | ||
timedOut: 'Upload stalled for %{seconds} seconds, aborting.', | ||
}, | ||
} |
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,5 @@ | ||
module.exports = { | ||
strings: { | ||
pluginNameBox: 'Box', | ||
}, | ||
} |
Oops, something went wrong.