Skip to content
Proyek

artemave/translate_onhover

Lihat di GitHub

Tentang

Browser translation extension

Alat pengembangan

Cara angka ini diukur

Pertumbuhan bintang terukur

dalam 24 jam
0
dalam 7 hari
0
dalam 15 hari
Mengumpulkan riwayat
dalam 1 bulan
Mengumpulkan riwayat

Perubahan bersih pada periode yang tumpang tindih, bukan total harian. Pengukuran yang belum tersedia dibiarkan kosong. Bintang menunjukkan perhatian, bukan kualitas.

README.md

Asli

Chrome Web Store License Test endpoints

Simply the best Google Chrome translation extension - https://chrome.google.com/webstore/detail/aggiiclaiamajehmlfpkjmlbadmkledi

Firefox version: https://addons.mozilla.org/firefox/addon/transover-ff/

Edge version: https://microsoftedge.microsoft.com/addons/detail/transover/jocggnbbgpaaphngnlccmhgbjffgnjda

Run local version

You'll need a terminal and NodeJs. Then clone/download this repository.

In the project directory, install dependencies (run this in a terminal):

npm install -g yarn
yarn install

Then build:

GA_API_SECRET=1234 GA_MEASUREMENT_ID=1234 yarn build

GA_API_SECRET and GA_MEASUREMENT_ID are Google Analytics 4 Measurement Protocol credentials; any values work for a local build. This runs the tests and produces translate_onhover_v3.zip (Chrome, Edge) and translate_onhover_v2.zip (Firefox).

Now you can "Load unpacked" the ./dist folder.

Development

In addition to the above, there is yarn dev. For as long as it is running, dist will stay updated with code changes.

yarn browser (Chromium) and yarn browser:firefox open a browser with the extension loaded, rebuild on code changes and reload the extension after each rebuild. Open tabs need a reload to pick up content script changes. They open example.com, or the URLs given as arguments, e.g. yarn browser https://mail.google.com. Each browser keeps its profile in .browser-profile/ and builds into .dev-build/, so both can run at once, alongside yarn dev or the tests.

Releasing

See docs/releasing.md.

Jelajahi proyek terkait

Memuat…