Skip to content

Use i18n for localized translations. Add localization features. #362

@ps2xu

Description

@ps2xu

Description

To improve the wallet experience (including hosts and renters), use i18n for localized translations. Make it easy for people to use, One JSON for each language pair.
\\Wallet UI Translation with go-i18n
The Web UI is provided by an external dependency, but translation logic is injected via
api/server.go
update the injection script to handle missing strings and update locale files.

Backend Logic
[MODIFY]
api/server.go
Update simpleMapTranslate in
langJSHandler
to include mappings for:
"Create a wallet" -> "create_wallet"
"Recover a wallet" -> "recover_wallet"
"Add a watch-only wallet" -> "add_watch_only_wallet"
"Add a Ledger hardware wallet" -> "add_ledger_wallet"
"Add a wallet to get started." -> "add_wallet_title"
"Generate a new wallet seed..." -> "create_wallet_desc"
"Restore a wallet from seed..." -> "recover_wallet_desc"
"Create a watch-only wallet..." -> "watch_only_wallet_desc"
"Add a Ledger hardware wallet..." -> "ledger_wallet_desc"


### Version

v2.11.0

### What operating system are you running (e.g. Ubuntu 22.04, macOS, Windows 11)?

Windows 11

### Anything else?

_No response_

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions