43 Commits

Author SHA1 Message Date
softsimon
4d097ea92a i18n all the remaining strings. 2020-12-03 18:34:19 +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
softsimon
be021dae4b About page updates.
refs  #128
2020-10-09 13:56:43 +07:00
softsimon
aaf107a888 Enhancements to the sponsorship GUI
fixes  #128
2020-10-08 17:51:10 +07:00
softsimon
3e71b5e465 Moving API docs to separate /api page. 2020-10-07 23:24:01 +07:00
softsimon
a9358c8d9e Only display About page on main Bitcoin network. 2020-10-07 20:27:22 +07:00
softsimon
79b9c35411 Minor dashboard mobile view fixes.
Offline indicator position fix.
2020-09-27 00:18:44 +07:00
softsimon
4bfaabbb5f Adding mini-graphs on dashboard. 2020-09-26 22:46:26 +07:00
softsimon
bd2d94f662 Menu design updates. 2020-09-22 12:07:08 +07:00
softsimon
50c419884f Menu design updates. 2020-09-22 06:55:45 +07:00
softsimon
f2e4e817a6 Removing hamburger menu on mobile. Adjusted icon sizes. 2020-09-22 06:13:27 +07:00
softsimon
a84df26506 Replacing menu button texts with icons.
Latest blocks is now a separate page.
2020-09-22 05:51:34 +07:00
softsimon
d915edd3de Replacing footer and latest blocks with a stats dashboard. 2020-09-21 19:41:12 +07:00
softsimon
400e156414 Changedetection performance improvements. 2020-08-02 16:00:08 +07:00
softsimon
30eb53011d Correced Liquid asset amouts. 2020-07-23 17:55:59 +07:00
softsimon
191f988937 Table design and responsiveness updates. 2020-07-18 11:04:04 +07:00
softsimon
f7dd46c6c7 Network menu design updates. 2020-07-16 14:30:27 +07:00
softsimon
5d396f031d Watch dir instead of json file.
Adding divider to network dropdown.
2020-07-16 00:33:53 +07:00
softsimon
7614338667 Rearange network dropdown.
API for Bisq block height tip.
Loading indicators on transactions/blocks view.
Total sent now correctly display burnt on Pay trade fee txs.
2020-07-15 13:10:13 +07:00
softsimon
cb3d21a2b2 Bisq statistics page. 2020-07-14 14:38:52 +07:00
softsimon
58caaafb1c Display network logo in the top bar.
Allow search for block height.
Hide empty bisq blocks.
2020-07-13 23:22:24 +07:00
softsimon
2ac2d9ecce Bisq explorer is now a separate module. 2020-07-11 00:17:13 +07:00
softsimon
d39b4a5c92 WIP: Bisq DAO support. Transactions list and details. 2020-07-03 23:45:19 +07:00
softsimon
94ccd98d0a Fixing routes to /tv and /status 2020-07-02 22:34:16 +07:00
softsimon
b2889abfa9 Adding support for optional frontend config.
Dropdown network selector is hidden by default, and enabled using config.
fixes #79
2020-06-22 22:10:49 +07:00
softsimon
68cff33ce2 Bugfix: Latestblock height didn't propagate in the template
Renaming Contributors to About
2020-06-21 14:55:16 +07:00
softsimon
4d475e4743 Removing "blockchain" tab to make medium size display not overlap. 2020-06-20 21:54:42 +07:00
softsimon
2db160b99c Icons to network dropdown. 2020-06-01 15:08:27 +07:00
softsimon
9f7da91282 Dropdown color update. 2020-05-10 16:22:35 +07:00
softsimon
a7690977ab Search box text updated.
BTC ticker fix.
Dropdown color fix.
Miner button tooltip.
2020-05-10 16:03:22 +07:00
softsimon
7974cbbc83 Liquid and Testnet now accessable from the main site
fixes #35
2020-05-09 20:37:50 +07:00
softsimon
cca5d07416 Hide assets on mainnet. 2020-05-02 17:52:26 +07:00
softsimon
f2fe82d505 Renaming file assets folder to resources to not confuse with Liquid assets. 2020-05-02 16:59:14 +07:00
softsimon
b7ac1c85ca Assets list. Native asset updates.
refs #37
2020-05-02 16:29:34 +07:00
softsimon
0b20ed808e - Switched the arrow colors for spent/unspent utxos
- Collapse dropdown on search (mobile)
2020-04-14 15:35:20 +07:00
softsimon
a21afeb7fa Adjusting font-sizes. Logo size. 2020-03-13 22:05:44 +07:00
wiz
ec0f3056ac Remove ".space" from mempool logo, fixes #55 2020-03-13 22:01:30 +09:00
softsimon
a3e52deb72 Adding a third connection state and preventing offline indicator from pushing the menu. 2020-03-09 17:53:54 +07:00
Simon Lindh
94b7f6e0e4 Design updates. 2020-02-26 03:39:22 +09:00
Simon Lindh
90a1fcaf8d Various fixes and design updates. 2020-02-26 03:37:00 +09:00
Simon Lindh
c550c888a4 Footer and header design updates. 2020-02-26 03:34:20 +09:00
Simon Lindh
98391580b3 Refactor. API explanations. UX revamp. 2020-02-26 03:26:16 +09:00
Simon Lindh
43f41b8aab New base code for mempool blockchain explorerer 2020-02-26 03:19:26 +09:00