Skip to content

Add i18n #273

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Open
wants to merge 62 commits into
base: master
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
62 commits
Select commit Hold shift + click to select a range
7ef52da
add tooltip auto hyphenation
arobsn Mar 19, 2025
3630618
add `vue-i18n` package
arobsn Mar 19, 2025
a3e8ead
add lazy loading
arobsn Mar 20, 2025
625eedc
preserve i18n instance
arobsn Mar 20, 2025
aec351b
don't include en.json twice
arobsn Mar 20, 2025
bddb6a2
remove petite-i18n-vue
arobsn Mar 21, 2025
ed7843c
refactor i18n handling functions
arobsn Mar 21, 2025
5e68628
don't ignore en locale on auto importing
arobsn Mar 21, 2025
311f16f
add type inference
arobsn Mar 21, 2025
1c9a064
improve type inference
arobsn Mar 21, 2025
4666d25
add i18n lint
arobsn Mar 22, 2025
a54c197
add header and assets view translations
arobsn Mar 22, 2025
528e27c
add transaction history translations
arobsn Mar 22, 2025
15653e3
remove i18n lint
arobsn Mar 24, 2025
f414f33
add date internationalization
arobsn Mar 24, 2025
5dcc5b1
fix lint
arobsn Mar 24, 2025
522ff53
Merge branch 'master' into add-i18n
arobsn Mar 24, 2025
026e78c
fix es-toolkit breaking changes
arobsn Mar 24, 2025
e709005
add address tooltips
arobsn Mar 25, 2025
ed1b95c
add i18n to receive view
arobsn Mar 25, 2025
39c81ac
add i18n to `SendView` component
arobsn Mar 26, 2025
52e7ab8
add context cloning
arobsn Mar 26, 2025
9c22f13
add i18n to`AddressQrCodeDialog` component
arobsn Mar 26, 2025
0fcc9c2
add i18n support to `AddressQrCodeDialog` component
arobsn Mar 27, 2025
7e1dd51
optimize rendering
arobsn Mar 27, 2025
d2d6827
add i18n support to `AssetInfoDialog` and `AssetInput` components
arobsn Mar 27, 2025
93147b3
add i18n support to `TransactionEntry` and `TransactionFeeConfig` com…
arobsn Mar 28, 2025
3d4ec47
refactor i18n setup to use Composer and improve locale handling
arobsn Mar 28, 2025
b1cb2f5
add i18n support to `TransactionSign` and `TransactionSignDialog` com…
arobsn Mar 28, 2025
87cfecc
add i18n support to `WalletItem` component
arobsn Mar 28, 2025
8829910
add i18n support to `LedgerDevice` component
arobsn Mar 29, 2025
7ba48d3
add locale loading fallback logic
arobsn Mar 31, 2025
c128807
add locale switch option
arobsn Mar 31, 2025
fa9e208
add dynamic locale loading
arobsn Apr 1, 2025
af4e4b1
add auto hyphenization for settings sections
arobsn Apr 2, 2025
4ae5d63
Merge branch 'master' into add-i18n
arobsn Apr 4, 2025
54f2413
add "learn more" button to demurrage alert box and rename `StorageRen…
arobsn Apr 4, 2025
2583753
handle `BigNumber` import breaking change
arobsn Apr 4, 2025
3aec13e
add i18n support for `WalletAlerts` component
arobsn Apr 4, 2025
6083b5e
replace `KYADialog` with a md file
arobsn Apr 5, 2025
0de7e66
add i18n support to `AddWalletIndexView` component
arobsn Apr 7, 2025
70b39b7
improve language fallback
arobsn Apr 8, 2025
6b8bdf6
replace DefaultStepper with new Stepper component and enhance step de…
arobsn Apr 8, 2025
a0d2913
add i18n support to `CreateWalletView` component
arobsn Apr 9, 2025
5c48f02
fix warning
arobsn Apr 9, 2025
2d65c96
add i18n support to `ImportWalletView` component
arobsn Apr 9, 2025
0d018ef
reorganize en dict
arobsn Apr 10, 2025
b0d562d
refactor wallet localization keys for consistency and structure
arobsn Apr 10, 2025
43e58d6
refactor device keys
arobsn Apr 10, 2025
471f69b
refactor header keys
arobsn Apr 10, 2025
c1f7861
refactor address keys
arobsn Apr 10, 2025
c72f385
refactor asset keys
arobsn Apr 10, 2025
57215d4
refactor transaction keys
arobsn Apr 10, 2025
98025bf
add `vue-i18n` lint plugin
arobsn Apr 10, 2025
b4991c6
fix lint errors
arobsn Apr 11, 2025
372c76e
add i18n support to the `LedgerConnectView` component
arobsn Apr 11, 2025
5806aa9
add i18n support to `AssetSelect` and `ExportPublicKeyDialog` components
arobsn Apr 11, 2025
74cc528
add language labels
arobsn Apr 11, 2025
a2d4895
fix cancel button render issue
arobsn Apr 12, 2025
7991076
add i18n support to settings components
arobsn Apr 14, 2025
f12ab94
refactor: update i18n keys for improved consistency across components
arobsn Apr 14, 2025
407ce38
add i18n support to `AboutView` component
arobsn Apr 14, 2025
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
18 changes: 18 additions & 0 deletions docs/legal/kya.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,18 @@
# Know Your Assumptions

Nautilus is an open source tool for interacting with the Ergo Blockchain.

**Notice that:**

1. We do not log, collect, profile, share, or sell your data. For more information, please refer to our [Privacy Policy](/privacy-policy.md)
2. Nautilus operates on a live blockchain, thus transactions are final, and irreversible once they have **confirmed** status;
3. Every transaction can be viewed and checked via [block explorer](https://sigmaspace.io/en);
4. All the code is open source and available for public review;
5. **Nautilus Team doesn't guarantee the absence of bugs and errors;**
6. **NO assistance can offered if a user is hacked or cheated out of passwords, currency or private keys;**

**By accepting these KYA, you agree that:**

- You will use the product at your own peril and risk;
- Only YOU are responsible for your assets;
- Only YOU are responsible for securely storing your recovery phrase.
File renamed without changes.
File renamed without changes.
44 changes: 37 additions & 7 deletions eslint.config.mjs
Original file line number Diff line number Diff line change
@@ -1,19 +1,26 @@
// @ts-check

import jsPlugin from "@eslint/js";
import vueI18nPlugin from "@intlify/eslint-plugin-vue-i18n";
import tsParser from "@typescript-eslint/parser";
import vuePlugin from "eslint-plugin-vue";
import tsPlugin from "typescript-eslint";
import vueParser from "vue-eslint-parser";

/** @type {import('@typescript-eslint/utils').TSESLint.FlatConfig.ConfigFile} */
export default [
{
ignores: ["**/node_modules", "**/dist", "**/coverage", "**/docs", "src/components/ui"]
ignores: [
"**/node_modules",
"**/dist",
"**/coverage",
"**/docs",
"src/components/ui",
"**/*.json"
]
},
jsPlugin.configs.recommended,
...tsPlugin.configs.recommended,
...vueI18nPlugin.configs.recommended,
...vuePlugin.configs["flat/essential"],

{
languageOptions: {
globals: {
Expand All @@ -31,13 +38,36 @@ export default [
parserOptions: { parser: tsParser }
},

settings: {
"vue-i18n": {
localeDir: "./src/locales/*.json",
messageSyntaxVersion: "^11.1.2"
}
},

rules: {
"vue/component-api-style": ["warn", ["script-setup", "composition"]],
"vue/multi-word-component-names": "off",
"no-console": "error",
"no-undef": "off", // TypeScript's compiler already enforces this check. https://eslint.org/docs/latest/rules/no-undef#handled_by_typescript
"sort-imports": "off",

"@typescript-eslint/explicit-module-boundary-types": "off",
"sort-imports": "off"

"vue/component-api-style": ["warn", ["script-setup", "composition"]],
"vue/multi-word-component-names": "off",

"@intlify/vue-i18n/no-missing-keys": "error",
"@intlify/vue-i18n/no-raw-text": "warn",
"@intlify/vue-i18n/no-unused-keys": "off",
"@intlify/vue-i18n/no-deprecated-i18n-component": "off",
"@intlify/vue-i18n/no-deprecated-i18n-place-attr": "off",
"@intlify/vue-i18n/no-deprecated-i18n-places-prop": "off",
"@intlify/vue-i18n/no-deprecated-modulo-syntax": "off",
"@intlify/vue-i18n/no-deprecated-tc": "off",
"@intlify/vue-i18n/no-deprecated-v-t": "off",
"@intlify/vue-i18n/no-html-messages": "off",
"@intlify/vue-i18n/no-i18n-t-path-prop": "off",
"@intlify/vue-i18n/no-v-html": "off",
"@intlify/vue-i18n/valid-message-syntax": "off"
}
}
];
7 changes: 5 additions & 2 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -42,7 +42,6 @@
"cleave.js": "^1.6.0",
"clsx": "^2.1.1",
"crypto-js": "^4.2.0",
"dayjs": "^1.11.13",
"dexie": "^4.0.11",
"ergo-lib-wasm-browser": "^0.28.0",
"es-toolkit": "^1.34.1",
Expand All @@ -54,6 +53,7 @@
"uqr": "^0.1.2",
"vaul-vue": "^0.4.1",
"vue": "^3.5.13",
"vue-i18n": "^11.1.2",
"vue-json-pretty": "2.4.0",
"vue-router": "^4.5.0",
"webext-bridge": "^6.0.1",
Expand All @@ -63,6 +63,8 @@
"@ergo-graphql/types": "^0.5.1",
"@eslint/js": "^9.23.0",
"@ianvs/prettier-plugin-sort-imports": "^4.4.1",
"@intlify/eslint-plugin-vue-i18n": "^4.0.1",
"@intlify/unplugin-vue-i18n": "^6.0.5",
"@nautilus-js/eip12-types": "^0.1.11",
"@tailwindcss/vite": "^4.1.2",
"@tsconfig/node20": "^20.1.5",
Expand Down Expand Up @@ -101,7 +103,8 @@
"pnpm": {
"patchedDependencies": {
"[email protected]": "patches/[email protected]",
"@types/[email protected]": "patches/@[email protected]"
"@types/[email protected]": "patches/@[email protected]",
"[email protected]": "patches/[email protected]"
},
"overrides": {
"esbuild@<=0.24.2": ">=0.25.1",
Expand Down
14 changes: 14 additions & 0 deletions patches/[email protected]
Original file line number Diff line number Diff line change
@@ -0,0 +1,14 @@
diff --git a/bignumber.d.ts b/bignumber.d.ts
index 3e950b714e9ad0032a3ab93da8876d24412216ab..53ee5772a8c55256ee09a49d424e4e507910104b 100644
--- a/bignumber.d.ts
+++ b/bignumber.d.ts
@@ -325,9 +325,6 @@ declare namespace BigNumber {

declare class BigNumber implements BigNumber.Instance {

- /** Used internally to identify a BigNumber instance. */
- private readonly _isBigNumber: true;
-
/** The coefficient of the value of this BigNumber, an array of base 1e14 integer numbers, or null. */
readonly c: number[] | null;

Loading
Loading