flat-state-13182
07/12/2022, 8:51 AMsticky-dress-98131
08/08/2022, 7:04 PMlimited-farmer-52140
08/19/2022, 8:32 AMquiet-electrician-41149
09/03/2022, 6:40 PMbusy-greece-52941
09/26/2022, 1:43 PMambitious-restaurant-41333
09/27/2022, 7:48 AMchrome.i18n.getMessage()
with getI18n()
ts
function getI18n(id, fallback = ""): string {
return chrome.i18n.getMessage(id) || fallback;
}
This way, not only the dev doesn't have to provide all of the messages, but also the code will be self-documenting