Commit Graph
452 Commits
Author SHA1 Message Date
wiz 1898dba1fc Update list of supported locales 2020-12-02 21:33:53 +09:00
wiz 3f3f8fd093 Remove unused i18n tags in frontend/src/index.html 2020-12-02 20:35:52 +09:00
wiz 7364166f4a Update translations from Transifex 2020-12-02 20:35:50 +09:00
wiz c4da29a847 Enable 'fr' locale for French 2020-12-02 20:35:46 +09:00
softsimon e88ada3e06 Corrected some missing spaces on transactions page and a blank render bug when confirmation time is below 1 minute. 2020-12-02 17:03:04 +07:00
wiz 46ad261d84 Implement i18n support in frontend using Angular + Transifex + NGINX
This PR adds basic i18n support into the mempool frontend, together with
a smooth workflow for developers and translators to collaborate:

* Using the existing @angular/localize module, developers add i18n
metadata to any frontend strings their new features or changes modify

* Using the new npm script `i18n-extract-from-source`, developers
extract the i18n data from source code into `src/locale/messages.xlf`

* After pushing the updated `src/locale/messages.xlf` to GitHub, the
Transifex service will update its database from the new source data

* Using the Transifex website UI, translators can work together to
translate all the mempool frontend strings into their native languages

* Using the new npm script `i18n-pull-from-transifex`, developers can
pull in completed translations from Transifex, and commit them into git.

This flow requires an API key from Transifex, which can be obtained at
https://www.transifex.com/user/settings/api/ to be used with the python
script installed by `pip install transifex-client` - after preparing
these, run the npm script which will ask you for the API key the first
time. When downloading is complete, you can test building the frontend,
and if successful, commit the new strings files into git.

This PR implements a new locale selector in the footer of the homepage
dashboard, and includes WIP translations for the following languages:

* Czech (cs)
* German (de)
* Japanese (ja)
* Norwegian (nn)
* Spanish (es)
* Swedish (sv)
* Ukrainian (uk)
* Persian (fa)
* Portugese (pt)
* Turkish (tr)
* Dutch (nl)
* French (fr)
* Chinese (zh)
* Slovenian (sl)
* Korean (ko)
* Polish (pl)

The user-agent's `Accept-Language` header is used to automatically
detect their preferred language, which can be manually overriden by the
pull-down selector, which saves their preference to a cookie, which is
used by nginx to serve the correct HTML bundle to the user.

Remaining tasks include adding i18n metadata for strings in the Bisq and
Liquid frontend code, mouseover hover tooltip strings, hard-coded og
metadata inside HTML templates, and many other places. This will be done
in a separate PR.

When upgrading to add i18n support, mempool instance operators must take
care to install the new nginx.conf and nginx-mempool.conf files, and
tweak for their specific site configuration.

Fixes #81
2020-12-02 04:19:33 +09:00
wiz e0e818b002 Upgrade angular from 10.0.4 to 10.2.3, typescript from 3.9.7 to 4.0.5 2020-11-28 04:04:45 +09:00
wiz bdf578603a Set npm to run ng and tsc binaries from ./node_modules/ path 2020-11-23 17:19:16 +09:00
softsimon 6541379a84 Display confidential instead of nothing for confidential assets.
fixes #110
2020-11-22 16:30:36 +07:00
softsimon 11baac3ed0 Detect confidential assets and display properly.
fixes #109
2020-11-22 16:19:57 +07:00
softsimon 26773c45da Allow searching for and viewing assets not in the asset registry.
fixes #111
2020-11-22 16:03:23 +07:00
wiz 97a08cc6f2 Tweak ASM opcode styling colors 2020-11-21 18:17:29 +09:00
wiz 7dbe7a7584 Add some color and styling to the Bitcoin ASM opcodes
Fixes #164
2020-11-21 05:29:50 +09:00
softsimon 5818dce386 Correcting title text on graph invert button. 2020-11-16 21:58:16 +07:00
softsimon c2982c0b46 Adding a button to invert the graph globally. 2020-11-16 19:27:06 +07:00
softsimon bff1e1b97b Display P2PK instead of OP_RETURN
fixes #161
2020-11-16 16:21:37 +07:00
softsimon 75e770f50c Improved utxo script design.
fixes #46
2020-11-16 02:25:10 +07:00
softsimon e946547c76 Adding prevout script. Fixed padding.
refs #46
2020-11-16 02:02:16 +07:00
softsimon 1c26f7e4ac Correcting details button padding on mobile. 2020-11-16 01:10:07 +07:00
softsimon 2b7ef0d287 Toggle display UTXO details and scripts for transactions
fixes #46
2020-11-15 17:58:38 +07:00
TechMiX d0e40c97ad fix legend bug on resize 2020-11-13 01:23:19 +01:00
softsimon b525d73f29 Correcting new chartist import path. 2020-11-10 21:09:50 +07:00
softsimon 61945c2283 Flip mempool chart by using patched chartist package by @techmix 2020-11-10 21:05:54 +07:00
softsimon 989b58ce4a Adding some padding and correcting a bad pixel line. 2020-11-03 18:03:25 +07:00
softsimon 8ecc0b086d Use actual mempool size instead of mempool vsize.
fixes #150
2020-11-03 16:11:32 +07:00
wiz a89d427098 ❤️ 2020-11-03 17:03:41 +09:00
wiz eca5f86bd9 Modify index.html metadata to have timestamp for mempool-preview.png URL 2020-11-03 16:44:25 +09:00
softsimon 812a278537 Fix: Reduce red difficulty adjustment progress when nearing end of cycle. 2020-11-02 14:48:48 +07:00
softsimon 1622743092 Merge pull request #147 from TechMiX/master
Save the legends status in cache
fixes #70
2020-11-01 20:26:38 +07:00
softsimon 60f86d0f44 Upgrading social media preview image to new design. 2020-11-01 17:40:45 +07:00
softsimon 5750c00a64 Fix: Wrong variable used to display mempool size. 2020-10-29 07:06:54 +07:00
TechMiX eae49ddafb Merge branch 'master' of https://github.com/mempool/mempool 2020-10-28 22:25:33 +01:00
TechMiX 6f423adda1 save the legends active status on a cache 2020-10-28 22:22:07 +01:00
softsimon 3b83f41e49 Calculate tx fees based on segwit tx sizes. 2020-10-28 20:26:48 +07:00
softsimon 35186c517f Updating lightning node name.
Fixing dashboard button alignment.
2020-10-27 19:27:48 +07:00
softsimon 2ac8608620 Change collapsing dashboard into 3 levels. 2020-10-27 16:34:27 +07:00
softsimon 91f9bb3e5f Add L-BTC sponsor support. 2020-10-27 15:26:37 +07:00
softsimon c736840f6e Feature: Add a collapse/show advanced view feature on the Dashboard
fixes #134
2020-10-27 02:58:29 +07:00
softsimon 14e3918adf Fix: Segwit-tag is inconsistent when transaction contains segwit and non segwit
fixes #130
2020-10-27 02:07:39 +07:00
softsimon cd3ffba248 Adding form validators for donation form. 2020-10-26 23:23:08 +07:00
softsimon 1bf8f3ba60 Fixing missing dashboard graph labels in Firefox. 2020-10-26 23:12:32 +07:00
wiz 66ff3e09f4 Revert "Lock NPM versions."
This reverts commit b544af14e4.
2020-10-26 20:56:55 +09:00
softsimon a3457a723a Sponsor Lightning support. 2020-10-26 18:29:25 +07:00
softsimon 82dd3eaf75 Lock NPM versions. 2020-10-26 15:59:28 +07:00
softsimon 5d1b34a65d npm audit fix 2020-10-26 01:13:36 +07:00
softsimon 7e85ecb454 Removing AVG() from mysql query reducing execution time. Increasing graph data span.
fixes #106
2020-10-26 01:00:21 +07:00
TechMiX 51e6945f47 update legend state after chart update 2020-10-23 19:03:15 +02:00
wiz 2130eca2d3 API Docs: move Fee Estimate APIs to their own tab 2020-10-23 22:15:17 +09:00
softsimon e2a7683828 Revamping configuration file.
fixes #141
2020-10-19 11:57:02 +07:00
wiz 7f3d871063 Remove last paragraph on about page 2020-10-18 20:02:48 +09:00