1
0
mirror of https://github.com/kremalicious/metamask-extension.git synced 2024-11-24 11:01:41 +01:00
metamask-extension/ui/app/pages
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
..
add-token Right-to-left CSS (using module for conversion) (#7072) 2019-09-03 14:47:54 -03:00
confirm-add-suggested-token Enable indent linting via ESLint (#6936) 2019-07-31 10:17:11 -10:00
confirm-add-token Enable indent linting via ESLint (#6936) 2019-07-31 10:17:11 -10:00
confirm-approve Folder restructure (#6304) 2019-03-21 20:33:30 -02:30
confirm-deploy-contract Only pass english function names to functionType metric 2019-04-08 13:31:11 -02:30
confirm-send-ether Only pass english function names to functionType metric 2019-04-08 13:31:11 -02:30
confirm-send-token Folder restructure (#6304) 2019-03-21 20:33:30 -02:30
confirm-token-transaction-base Fix confirm token transaction amount display (#7081) 2019-08-31 13:26:49 -03:00
confirm-transaction Fix undefined tx id error (#7053) 2019-08-26 09:04:48 -03:00
confirm-transaction-base Show recipient alias in confirm header if exists (#6944) 2019-08-08 16:15:30 -02:30
confirm-transaction-switch 4byte fallback (#6551) 2019-06-18 09:47:14 -02:30
create-account Remove unused locale messages (#7190) 2019-09-18 20:29:46 -03:00
first-time-flow 3box integration 2.0 (#6972) 2019-09-16 14:41:01 -02:30
home 3box integration 2.0 (#6972) 2019-09-16 14:41:01 -02:30
keychains Fix seed phrase import back button (#6758) 2019-06-27 12:26:25 -03:00
lock Folder restructure (#6304) 2019-03-21 20:33:30 -02:30
mobile-sync Update mobile sync (#6967) 2019-08-06 15:33:41 -04:00
provider-approval Refactor ProviderApprovalController to use rpc and publicConfigStore (#6410) 2019-05-03 13:32:05 -04:00
routes Right-to-left CSS (using module for conversion) (#7072) 2019-09-03 14:47:54 -03:00
send Remove unused components (#7191) 2019-09-18 18:41:36 -03:00
settings Refactor validation function (#7187) 2019-09-18 10:57:18 -03:00
unlock-page Open retore-vault route from popup (#6353) 2019-03-26 23:35:29 -07:00
index.js Folder restructure (#6304) 2019-03-21 20:33:30 -02:30
index.scss Address book send plus contact list (#6914) 2019-07-31 17:26:44 -02:30