curl -sL https://deb.nodesource.com/setup_14.x | sudo -E bash -
sudo apt-get install -y nodejs
const fs = require('fs'); | |
let lang = "it"; | |
let i18n = JSON.parse(fs.readFileSync("src/_locales/" + lang + "/messages.json", "utf8")); | |
let output = ""; | |
for(const prop in i18n) { | |
//output += prop + ": "; |
// Type definitions for WebExtension Development in FireFox 58.0 | |
// Project: https://developer.mozilla.org/en-US/Add-ons/WebExtensions | |
// Definitions by: Jacob Bom <https://github.com/bomjacob> | |
// Definitions: https://github.com/DefinitelyTyped/DefinitelyTyped | |
// TypeScript Version: 2.9 | |
// Generated using script at github.com/bomjacob/definitelytyped-firefox-webext-browser | |
interface WebExtEventBase<TAddListener extends (...args: any[]) => any, TCallback> { | |
addListener: TAddListener; |
interface Manifest { | |
// mandatory | |
manifest_version: string, | |
name: string, | |
version: string, | |
// a few common & simple ones | |
author: string, | |
default_locale: string, | |
description: string, |