aboutsummaryrefslogtreecommitdiffstats
path: root/src/lib
diff options
context:
space:
mode:
authorAdam Soltys <[email protected]>2023-03-17 20:28:00 -0700
committerAdam Soltys <[email protected]>2023-03-17 20:28:00 -0700
commit93f23786af35bbe932bc849c8a301d5af1b82d58 (patch)
treed7d6d408fb34ec1892b67aa56398cffe726d0eab /src/lib
parentc4757b998cd9be2db18ac1805557bdf175fc86c3 (diff)
parentcdc3a2677c8728af27084024daba288153c2bd52 (diff)
downloadcoinos-ui-93f23786af35bbe932bc849c8a301d5af1b82d58.tar.gz
coinos-ui-93f23786af35bbe932bc849c8a301d5af1b82d58.zip
Merge branch 'master' into hashme
Diffstat (limited to 'src/lib')
-rw-r--r--src/lib/samples.js23
-rw-r--r--src/lib/translations/index.js5
-rw-r--r--src/lib/translations/lang.json3
3 files changed, 30 insertions, 1 deletions
diff --git a/src/lib/samples.js b/src/lib/samples.js
new file mode 100644
index 00000000..93b9aa24
--- /dev/null
+++ b/src/lib/samples.js
@@ -0,0 +1,23 @@
+export default {
+ register: `curl "https://coinos.io/api/register" -H "application/json" -d '{
+ "username": "adam",
+ "password": "hunter2"
+}'`,
+ login: `curl "https://coinos.io/api/login" -H "application/json" -d '{
+ "username": "adam",
+ "password": "hunter2"
+}'`,
+ invoice: `curl "https://coinos.io/api/invoice"
+ -H "application/json"
+ -H "Authorization: Bearer $token"
+ -d '{
+ "invoice": {
+ "amount": 1000,
+ "type": "lightning",
+ "webhook": "https://example.com/payment/received",
+ "secret": "hunter2"
+ },
+}'`,
+ fetchInvoice: `curl "https://coinos.io/api/invoice/bc1qmhfk9stzffhd9umzmld92vff7zg3mdlh7rvvaj"
+ -H "application/json"'`
+};
diff --git a/src/lib/translations/index.js b/src/lib/translations/index.js
index 9c798530..dfd7f47f 100644
--- a/src/lib/translations/index.js
+++ b/src/lib/translations/index.js
@@ -46,6 +46,11 @@ const config = {
locale: 'de',
key: '',
loader: async () => (await import('../../locales/de.json')).default
+ },
+ {
+ locale: 'zh',
+ key: '',
+ loader: async () => (await import('../../locales/zh.json')).default
}
]
};
diff --git a/src/lib/translations/lang.json b/src/lib/translations/lang.json
index c537d4cf..c607ebd0 100644
--- a/src/lib/translations/lang.json
+++ b/src/lib/translations/lang.json
@@ -3,5 +3,6 @@
"fr": "Français",
"es": "Español",
"de": "Deutsch",
- "pt": "Português"
+ "pt": "Português",
+ "zh": "中国人"
}