1
0
mirror of https://github.com/kremalicious/metamask-extension.git synced 2024-12-23 09:52:26 +01:00
metamask-extension/development
Mark Stacey 48bf2f8731
Remove unused locale messages (#7190)
* Switch to using string literals for locale keys

Various message keys were being specified with a string template
instead of a string literal. They have been switched to use string
literals so that the script for detecting unused messages can find
them.

* Remove unused locale messages

A number of unused locale messages have been removed - probably
leftover from old UI elements that have since been removed.

The `verify_locale_strings` script has been augmented to search the UI
for string literals, and match those against the locale message keys in
the `en` locale. Any messages without a corresponding string literal
are assumed to be unused.

The script has also been updated with an optional `--fix` parameter,
which will automatically delete any unused messages from locales.

148 unused messages were found in this case, out of a total of about
650 messages. Another 70 messages are _potentially_ unused and require
further investigation, but weren't as easy to rule out because they
were found in string literals.

* Remove additional unused locale messages

The following messages were more difficult to rule out because they
were present as string literals in the UI. They do appear to be
unused as locale keys though.
2019-09-18 20:29:46 -03:00
..
states Remove ComputedbalancesController (#7057) 2019-08-22 10:26:43 -02:30
.jsdoc.json Remove unused AppVeyor configuration (#6840) 2019-07-12 12:42:36 -03:00
announcer.js eslint --fix . 2018-07-02 18:49:33 -04:00
auto-changelog.sh Improve auto changelog script (#6753) 2019-07-11 11:08:23 -03:00
backGroundConnectionModifiers.js Check for unused function arguments (#6583) 2019-05-08 15:51:33 -04:00
genStates.js Speed up genStates script by using built-in require fn 2018-11-20 14:04:50 -03:30
gource-viz.sh dev - move gource instructions from docs to development script 2019-09-10 22:05:16 +08:00
index.html development - fix ui dev 2017-09-29 11:50:24 -07:00
metamaskbot-build-announce.js 3box integration 2.0 (#6972) 2019-09-16 14:41:01 -02:30
mock-3box.js 3box integration 2.0 (#6972) 2019-09-16 14:41:01 -02:30
mock-dev.js Enable indent linting via ESLint (#6936) 2019-07-31 10:17:11 -10:00
README.md add READMEs to folders, re #3427 2018-03-14 15:33:22 +02:00
require-react-devtools.js Add React and Redux DevTools (#6793) 2019-07-11 12:27:06 -02:30
rollback.sh Switch from npm to yarn (#6843) 2019-07-30 15:36:23 -03:00
run-ganache Replace deprecated shell-parallel with concurrently (#6807) 2019-07-09 14:09:31 -02:30
run-version-bump.js eslint --fix . 2018-07-02 18:49:33 -04:00
selector.js eslint --fix . 2018-07-02 18:49:33 -04:00
sentry-publish.js Enable indent linting via ESLint (#6936) 2019-07-31 10:17:11 -10:00
source-map-explorer.sh ci - create source-map-explorer build-artifacts (#7141) 2019-09-11 23:35:30 +08:00
sourcemap-validator.js development - enhancement for sourcemap validator tool (#6277) 2019-03-11 09:55:43 -07:00
test.html tests - integration - get flat and mascara tests closer to compatible 2017-09-13 20:25:27 -07:00
verify-locale-strings.js Remove unused locale messages (#7190) 2019-09-18 20:29:46 -03:00
version-bump.js Version 5.0.3 (#5785) 2018-11-20 08:34:14 -10:00

Development

Several files which are needed for developing on(!) MetaMask.

Usually each files contains information about its scope / usage.