1
0
mirror of https://github.com/kremalicious/metamask-extension.git synced 2024-11-27 12:56:01 +01:00
metamask-extension/ui
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
..
app Remove unused locale messages (#7190) 2019-09-18 20:29:46 -03:00
design Revert "[ImgBot] Optimize images" (#7027) 2019-08-16 12:32:02 -02:30
lib Remove unused lostAccounts state (#6979) 2019-08-08 17:03:10 -02:30
index.html Right-to-left CSS (using module for conversion) (#7072) 2019-09-03 14:47:54 -03:00
index.js 3box integration 2.0 (#6972) 2019-09-16 14:41:01 -02:30