Skip to content
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

feat(ui): add zh language #196

Open
wants to merge 2 commits into
base: main
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from all commits
Commits
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
12 changes: 6 additions & 6 deletions docs/classes/_tonconnect_protocol.SessionCrypto.html
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,7 @@ <h4>Hierarchy</h4>
<ul class="tsd-hierarchy">
<li><span class="target">SessionCrypto</span></li></ul></section><aside class="tsd-sources">
<ul>
<li>Defined in <a href="https://github.com/ton-connect/sdk/blob/b360857/packages/protocol/src/crypto/session-crypto.ts#L5">packages/protocol/src/crypto/session-crypto.ts:5</a></li></ul></aside>
<li>Defined in <a href="https://github.com/ton-connect/sdk/blob/1be15d8/packages/protocol/src/crypto/session-crypto.ts#L5">packages/protocol/src/crypto/session-crypto.ts:5</a></li></ul></aside>
<section class="tsd-panel-group tsd-index-group">
<section class="tsd-panel tsd-index-panel">
<details class="tsd-index-content tsd-index-accordion" open><summary class="tsd-accordion-summary tsd-index-summary">
Expand Down Expand Up @@ -55,14 +55,14 @@ <h4 class="tsd-parameters-title">Parameters</h4>
<h5><code class="tsd-tag ts-flagOptional">Optional</code> keyPair: <a href="../interfaces/_tonconnect_protocol.KeyPair.html" class="tsd-signature-type" data-tsd-kind="Interface">KeyPair</a></h5></li></ul></div>
<h4 class="tsd-returns-title">Returns <a href="_tonconnect_protocol.SessionCrypto.html" class="tsd-signature-type" data-tsd-kind="Class">SessionCrypto</a></h4><aside class="tsd-sources">
<ul>
<li>Defined in <a href="https://github.com/ton-connect/sdk/blob/b360857/packages/protocol/src/crypto/session-crypto.ts#L12">packages/protocol/src/crypto/session-crypto.ts:12</a></li></ul></aside></li></ul></section></section>
<li>Defined in <a href="https://github.com/ton-connect/sdk/blob/1be15d8/packages/protocol/src/crypto/session-crypto.ts#L12">packages/protocol/src/crypto/session-crypto.ts:12</a></li></ul></aside></li></ul></section></section>
<section class="tsd-panel-group tsd-member-group">
<h2>Properties</h2>
<section class="tsd-panel tsd-member tsd-kind-property tsd-parent-kind-class"><a id="sessionId" class="tsd-anchor"></a>
<h3 class="tsd-anchor-link"><code class="tsd-tag ts-flagReadonly">Readonly</code> <span>session<wbr/>Id</span><a href="#sessionId" aria-label="Permalink" class="tsd-anchor-icon"><svg class="icon icon-tabler icon-tabler-link" viewBox="0 0 24 24" stroke-width="2" stroke="currentColor" fill="none" stroke-linecap="round" stroke-linejoin="round"><use href="#icon-anchor-a"></use><use href="#icon-anchor-b"></use><use href="#icon-anchor-c"></use></svg></a></h3>
<div class="tsd-signature">session<wbr/>Id<span class="tsd-signature-symbol">:</span> <span class="tsd-signature-type">string</span></div><aside class="tsd-sources">
<ul>
<li>Defined in <a href="https://github.com/ton-connect/sdk/blob/b360857/packages/protocol/src/crypto/session-crypto.ts#L10">packages/protocol/src/crypto/session-crypto.ts:10</a></li></ul></aside></section></section>
<li>Defined in <a href="https://github.com/ton-connect/sdk/blob/1be15d8/packages/protocol/src/crypto/session-crypto.ts#L10">packages/protocol/src/crypto/session-crypto.ts:10</a></li></ul></aside></section></section>
<section class="tsd-panel-group tsd-member-group">
<h2>Methods</h2>
<section class="tsd-panel tsd-member tsd-kind-method tsd-parent-kind-class"><a id="decrypt" class="tsd-anchor"></a>
Expand All @@ -79,7 +79,7 @@ <h5>message: <span class="tsd-signature-type">Uint8Array</span></h5></li>
<h5>senderPublicKey: <span class="tsd-signature-type">Uint8Array</span></h5></li></ul></div>
<h4 class="tsd-returns-title">Returns <span class="tsd-signature-type">string</span></h4><aside class="tsd-sources">
<ul>
<li>Defined in <a href="https://github.com/ton-connect/sdk/blob/b360857/packages/protocol/src/crypto/session-crypto.ts#L44">packages/protocol/src/crypto/session-crypto.ts:44</a></li></ul></aside></li></ul></section>
<li>Defined in <a href="https://github.com/ton-connect/sdk/blob/1be15d8/packages/protocol/src/crypto/session-crypto.ts#L44">packages/protocol/src/crypto/session-crypto.ts:44</a></li></ul></aside></li></ul></section>
<section class="tsd-panel tsd-member tsd-kind-method tsd-parent-kind-class"><a id="encrypt" class="tsd-anchor"></a>
<h3 class="tsd-anchor-link"><span>encrypt</span><a href="#encrypt" aria-label="Permalink" class="tsd-anchor-icon"><svg class="icon icon-tabler icon-tabler-link" viewBox="0 0 24 24" stroke-width="2" stroke="currentColor" fill="none" stroke-linecap="round" stroke-linejoin="round"><use href="#icon-anchor-a"></use><use href="#icon-anchor-b"></use><use href="#icon-anchor-c"></use></svg></a></h3>
<ul class="tsd-signatures tsd-kind-method tsd-parent-kind-class">
Expand All @@ -94,15 +94,15 @@ <h5>message: <span class="tsd-signature-type">string</span></h5></li>
<h5>receiverPublicKey: <span class="tsd-signature-type">Uint8Array</span></h5></li></ul></div>
<h4 class="tsd-returns-title">Returns <span class="tsd-signature-type">Uint8Array</span></h4><aside class="tsd-sources">
<ul>
<li>Defined in <a href="https://github.com/ton-connect/sdk/blob/b360857/packages/protocol/src/crypto/session-crypto.ts#L32">packages/protocol/src/crypto/session-crypto.ts:32</a></li></ul></aside></li></ul></section>
<li>Defined in <a href="https://github.com/ton-connect/sdk/blob/1be15d8/packages/protocol/src/crypto/session-crypto.ts#L32">packages/protocol/src/crypto/session-crypto.ts:32</a></li></ul></aside></li></ul></section>
<section class="tsd-panel tsd-member tsd-kind-method tsd-parent-kind-class"><a id="stringifyKeypair" class="tsd-anchor"></a>
<h3 class="tsd-anchor-link"><span>stringify<wbr/>Keypair</span><a href="#stringifyKeypair" aria-label="Permalink" class="tsd-anchor-icon"><svg class="icon icon-tabler icon-tabler-link" viewBox="0 0 24 24" stroke-width="2" stroke="currentColor" fill="none" stroke-linecap="round" stroke-linejoin="round"><use href="#icon-anchor-a"></use><use href="#icon-anchor-b"></use><use href="#icon-anchor-c"></use></svg></a></h3>
<ul class="tsd-signatures tsd-kind-method tsd-parent-kind-class">
<li class="tsd-signature tsd-anchor-link" id="stringifyKeypair.stringifyKeypair-1">stringify<wbr/>Keypair<span class="tsd-signature-symbol">(</span><span class="tsd-signature-symbol">)</span><span class="tsd-signature-symbol">: </span><a href="../interfaces/_tonconnect_protocol.KeyPair.html" class="tsd-signature-type" data-tsd-kind="Interface">KeyPair</a><a href="#stringifyKeypair.stringifyKeypair-1" aria-label="Permalink" class="tsd-anchor-icon"><svg class="icon icon-tabler icon-tabler-link" viewBox="0 0 24 24" stroke-width="2" stroke="currentColor" fill="none" stroke-linecap="round" stroke-linejoin="round"><use href="#icon-anchor-a"></use><use href="#icon-anchor-b"></use><use href="#icon-anchor-c"></use></svg></a></li>
<li class="tsd-description">
<h4 class="tsd-returns-title">Returns <a href="../interfaces/_tonconnect_protocol.KeyPair.html" class="tsd-signature-type" data-tsd-kind="Interface">KeyPair</a></h4><aside class="tsd-sources">
<ul>
<li>Defined in <a href="https://github.com/ton-connect/sdk/blob/b360857/packages/protocol/src/crypto/session-crypto.ts#L63">packages/protocol/src/crypto/session-crypto.ts:63</a></li></ul></aside></li></ul></section></section></div>
<li>Defined in <a href="https://github.com/ton-connect/sdk/blob/1be15d8/packages/protocol/src/crypto/session-crypto.ts#L63">packages/protocol/src/crypto/session-crypto.ts:63</a></li></ul></aside></li></ul></section></section></div>
<div class="col-4 col-menu menu-sticky-wrap menu-highlight">
<div class="tsd-navigation settings">
<details class="tsd-index-accordion"><summary class="tsd-accordion-summary">
Expand Down
4 changes: 2 additions & 2 deletions docs/classes/_tonconnect_sdk.BadRequestError.html
Original file line number Diff line number Diff line change
Expand Up @@ -26,7 +26,7 @@ <h4>Hierarchy</h4>
<ul class="tsd-hierarchy">
<li><span class="target">BadRequestError</span></li></ul></li></ul></section><aside class="tsd-sources">
<ul>
<li>Defined in <a href="https://github.com/ton-connect/sdk/blob/b360857/packages/sdk/src/errors/protocol/responses/bad-request.error.ts#L6">packages/sdk/src/errors/protocol/responses/bad-request.error.ts:6</a></li></ul></aside>
<li>Defined in <a href="https://github.com/ton-connect/sdk/blob/1be15d8/packages/sdk/src/errors/protocol/responses/bad-request.error.ts#L6">packages/sdk/src/errors/protocol/responses/bad-request.error.ts:6</a></li></ul></aside>
<section class="tsd-panel-group tsd-index-group">
<section class="tsd-panel tsd-index-panel">
<details class="tsd-index-content tsd-index-accordion" open><summary class="tsd-accordion-summary tsd-index-summary">
Expand Down Expand Up @@ -64,7 +64,7 @@ <h5><code class="tsd-tag ts-flagRest">Rest</code> <span class="tsd-signature-sym
<h4 class="tsd-returns-title">Returns <a href="_tonconnect_sdk.BadRequestError.html" class="tsd-signature-type" data-tsd-kind="Class">BadRequestError</a></h4><aside class="tsd-sources">
<p>Overrides <a href="_tonconnect_sdk.TonConnectError.html">TonConnectError</a>.<a href="_tonconnect_sdk.TonConnectError.html#constructor">constructor</a></p>
<ul>
<li>Defined in <a href="https://github.com/ton-connect/sdk/blob/b360857/packages/sdk/src/errors/protocol/responses/bad-request.error.ts#L11">packages/sdk/src/errors/protocol/responses/bad-request.error.ts:11</a></li></ul></aside></li></ul></section></section>
<li>Defined in <a href="https://github.com/ton-connect/sdk/blob/1be15d8/packages/sdk/src/errors/protocol/responses/bad-request.error.ts#L11">packages/sdk/src/errors/protocol/responses/bad-request.error.ts:11</a></li></ul></aside></li></ul></section></section>
<section class="tsd-panel-group tsd-member-group">
<h2>Properties</h2>
<section class="tsd-panel tsd-member tsd-kind-property tsd-parent-kind-class tsd-is-inherited tsd-is-external"><a id="cause" class="tsd-anchor"></a>
Expand Down
6 changes: 3 additions & 3 deletions docs/classes/_tonconnect_sdk.BrowserEventDispatcher.html
Original file line number Diff line number Diff line change
Expand Up @@ -33,7 +33,7 @@ <h4>Implements</h4>
<ul class="tsd-hierarchy">
<li><a href="../interfaces/_tonconnect_sdk.EventDispatcher.html" class="tsd-signature-type" data-tsd-kind="Interface">EventDispatcher</a><span class="tsd-signature-symbol">&lt;</span><span class="tsd-signature-type" data-tsd-kind="Type parameter">T</span><span class="tsd-signature-symbol">&gt;</span></li></ul></section><aside class="tsd-sources">
<ul>
<li>Defined in <a href="https://github.com/ton-connect/sdk/blob/b360857/packages/sdk/src/tracker/browser-event-dispatcher.ts#L7">packages/sdk/src/tracker/browser-event-dispatcher.ts:7</a></li></ul></aside>
<li>Defined in <a href="https://github.com/ton-connect/sdk/blob/1be15d8/packages/sdk/src/tracker/browser-event-dispatcher.ts#L7">packages/sdk/src/tracker/browser-event-dispatcher.ts:7</a></li></ul></aside>
<section class="tsd-panel-group tsd-index-group">
<section class="tsd-panel tsd-index-panel">
<details class="tsd-index-content tsd-index-accordion" open><summary class="tsd-accordion-summary tsd-index-summary">
Expand Down Expand Up @@ -106,7 +106,7 @@ <h5><code class="tsd-tag ts-flagOptional">Optional</code> options: <span class="
<h4 class="tsd-returns-title">Returns <span class="tsd-signature-type">Promise</span><span class="tsd-signature-symbol">&lt;</span><span class="tsd-signature-symbol">(</span><span class="tsd-signature-symbol">(</span><span class="tsd-signature-symbol">)</span><span class="tsd-signature-symbol"> =&gt; </span><span class="tsd-signature-type">void</span><span class="tsd-signature-symbol">)</span><span class="tsd-signature-symbol">&gt;</span></h4><aside class="tsd-sources">
<p>Implementation of <a href="../interfaces/_tonconnect_sdk.EventDispatcher.html">EventDispatcher</a>.<a href="../interfaces/_tonconnect_sdk.EventDispatcher.html#addEventListener">addEventListener</a></p>
<ul>
<li>Defined in <a href="https://github.com/ton-connect/sdk/blob/b360857/packages/sdk/src/tracker/browser-event-dispatcher.ts#L35">packages/sdk/src/tracker/browser-event-dispatcher.ts:35</a></li></ul></aside></li></ul></section>
<li>Defined in <a href="https://github.com/ton-connect/sdk/blob/1be15d8/packages/sdk/src/tracker/browser-event-dispatcher.ts#L35">packages/sdk/src/tracker/browser-event-dispatcher.ts:35</a></li></ul></aside></li></ul></section>
<section class="tsd-panel tsd-member tsd-kind-method tsd-parent-kind-class"><a id="dispatchEvent" class="tsd-anchor"></a>
<h3 class="tsd-anchor-link"><span>dispatch<wbr/>Event</span><a href="#dispatchEvent" aria-label="Permalink" class="tsd-anchor-icon"><svg class="icon icon-tabler icon-tabler-link" viewBox="0 0 24 24" stroke-width="2" stroke="currentColor" fill="none" stroke-linecap="round" stroke-linejoin="round"><use href="#icon-anchor-a"></use><use href="#icon-anchor-b"></use><use href="#icon-anchor-c"></use></svg></a></h3>
<ul class="tsd-signatures tsd-kind-method tsd-parent-kind-class">
Expand Down Expand Up @@ -135,7 +135,7 @@ <h5>eventDetails: <span class="tsd-signature-type" data-tsd-kind="Type parameter
<h4 class="tsd-returns-title">Returns <span class="tsd-signature-type">Promise</span><span class="tsd-signature-symbol">&lt;</span><span class="tsd-signature-type">void</span><span class="tsd-signature-symbol">&gt;</span></h4><aside class="tsd-sources">
<p>Implementation of <a href="../interfaces/_tonconnect_sdk.EventDispatcher.html">EventDispatcher</a>.<a href="../interfaces/_tonconnect_sdk.EventDispatcher.html#dispatchEvent">dispatchEvent</a></p>
<ul>
<li>Defined in <a href="https://github.com/ton-connect/sdk/blob/b360857/packages/sdk/src/tracker/browser-event-dispatcher.ts#L20">packages/sdk/src/tracker/browser-event-dispatcher.ts:20</a></li></ul></aside></li></ul></section></section></div>
<li>Defined in <a href="https://github.com/ton-connect/sdk/blob/1be15d8/packages/sdk/src/tracker/browser-event-dispatcher.ts#L20">packages/sdk/src/tracker/browser-event-dispatcher.ts:20</a></li></ul></aside></li></ul></section></section></div>
<div class="col-4 col-menu menu-sticky-wrap menu-highlight">
<div class="tsd-navigation settings">
<details class="tsd-index-accordion"><summary class="tsd-accordion-summary">
Expand Down
4 changes: 2 additions & 2 deletions docs/classes/_tonconnect_sdk.FetchWalletsError.html
Original file line number Diff line number Diff line change
Expand Up @@ -26,7 +26,7 @@ <h4>Hierarchy</h4>
<ul class="tsd-hierarchy">
<li><span class="target">FetchWalletsError</span></li></ul></li></ul></section><aside class="tsd-sources">
<ul>
<li>Defined in <a href="https://github.com/ton-connect/sdk/blob/b360857/packages/sdk/src/errors/wallets-manager/fetch-wallets.error.ts#L6">packages/sdk/src/errors/wallets-manager/fetch-wallets.error.ts:6</a></li></ul></aside>
<li>Defined in <a href="https://github.com/ton-connect/sdk/blob/1be15d8/packages/sdk/src/errors/wallets-manager/fetch-wallets.error.ts#L6">packages/sdk/src/errors/wallets-manager/fetch-wallets.error.ts:6</a></li></ul></aside>
<section class="tsd-panel-group tsd-index-group">
<section class="tsd-panel tsd-index-panel">
<details class="tsd-index-content tsd-index-accordion" open><summary class="tsd-accordion-summary tsd-index-summary">
Expand Down Expand Up @@ -64,7 +64,7 @@ <h5><code class="tsd-tag ts-flagRest">Rest</code> <span class="tsd-signature-sym
<h4 class="tsd-returns-title">Returns <a href="_tonconnect_sdk.FetchWalletsError.html" class="tsd-signature-type" data-tsd-kind="Class">FetchWalletsError</a></h4><aside class="tsd-sources">
<p>Overrides <a href="_tonconnect_sdk.TonConnectError.html">TonConnectError</a>.<a href="_tonconnect_sdk.TonConnectError.html#constructor">constructor</a></p>
<ul>
<li>Defined in <a href="https://github.com/ton-connect/sdk/blob/b360857/packages/sdk/src/errors/wallets-manager/fetch-wallets.error.ts#L11">packages/sdk/src/errors/wallets-manager/fetch-wallets.error.ts:11</a></li></ul></aside></li></ul></section></section>
<li>Defined in <a href="https://github.com/ton-connect/sdk/blob/1be15d8/packages/sdk/src/errors/wallets-manager/fetch-wallets.error.ts#L11">packages/sdk/src/errors/wallets-manager/fetch-wallets.error.ts:11</a></li></ul></aside></li></ul></section></section>
<section class="tsd-panel-group tsd-member-group">
<h2>Properties</h2>
<section class="tsd-panel tsd-member tsd-kind-property tsd-parent-kind-class tsd-is-inherited tsd-is-external"><a id="cause" class="tsd-anchor"></a>
Expand Down
4 changes: 2 additions & 2 deletions docs/classes/_tonconnect_sdk.LocalstorageNotFoundError.html
Original file line number Diff line number Diff line change
Expand Up @@ -26,7 +26,7 @@ <h4>Hierarchy</h4>
<ul class="tsd-hierarchy">
<li><span class="target">LocalstorageNotFoundError</span></li></ul></li></ul></section><aside class="tsd-sources">
<ul>
<li>Defined in <a href="https://github.com/ton-connect/sdk/blob/b360857/packages/sdk/src/errors/storage/localstorage-not-found.error.ts#L6">packages/sdk/src/errors/storage/localstorage-not-found.error.ts:6</a></li></ul></aside>
<li>Defined in <a href="https://github.com/ton-connect/sdk/blob/1be15d8/packages/sdk/src/errors/storage/localstorage-not-found.error.ts#L6">packages/sdk/src/errors/storage/localstorage-not-found.error.ts:6</a></li></ul></aside>
<section class="tsd-panel-group tsd-index-group">
<section class="tsd-panel tsd-index-panel">
<details class="tsd-index-content tsd-index-accordion" open><summary class="tsd-accordion-summary tsd-index-summary">
Expand Down Expand Up @@ -64,7 +64,7 @@ <h5><code class="tsd-tag ts-flagRest">Rest</code> <span class="tsd-signature-sym
<h4 class="tsd-returns-title">Returns <a href="_tonconnect_sdk.LocalstorageNotFoundError.html" class="tsd-signature-type" data-tsd-kind="Class">LocalstorageNotFoundError</a></h4><aside class="tsd-sources">
<p>Overrides <a href="_tonconnect_sdk.TonConnectError.html">TonConnectError</a>.<a href="_tonconnect_sdk.TonConnectError.html#constructor">constructor</a></p>
<ul>
<li>Defined in <a href="https://github.com/ton-connect/sdk/blob/b360857/packages/sdk/src/errors/storage/localstorage-not-found.error.ts#L11">packages/sdk/src/errors/storage/localstorage-not-found.error.ts:11</a></li></ul></aside></li></ul></section></section>
<li>Defined in <a href="https://github.com/ton-connect/sdk/blob/1be15d8/packages/sdk/src/errors/storage/localstorage-not-found.error.ts#L11">packages/sdk/src/errors/storage/localstorage-not-found.error.ts:11</a></li></ul></aside></li></ul></section></section>
<section class="tsd-panel-group tsd-member-group">
<h2>Properties</h2>
<section class="tsd-panel tsd-member tsd-kind-property tsd-parent-kind-class tsd-is-inherited tsd-is-external"><a id="cause" class="tsd-anchor"></a>
Expand Down
4 changes: 2 additions & 2 deletions docs/classes/_tonconnect_sdk.ParseHexError.html
Original file line number Diff line number Diff line change
Expand Up @@ -26,7 +26,7 @@ <h4>Hierarchy</h4>
<ul class="tsd-hierarchy">
<li><span class="target">ParseHexError</span></li></ul></li></ul></section><aside class="tsd-sources">
<ul>
<li>Defined in <a href="https://github.com/ton-connect/sdk/blob/b360857/packages/sdk/src/errors/binary/parse-hex.error.ts#L6">packages/sdk/src/errors/binary/parse-hex.error.ts:6</a></li></ul></aside>
<li>Defined in <a href="https://github.com/ton-connect/sdk/blob/1be15d8/packages/sdk/src/errors/binary/parse-hex.error.ts#L6">packages/sdk/src/errors/binary/parse-hex.error.ts:6</a></li></ul></aside>
<section class="tsd-panel-group tsd-index-group">
<section class="tsd-panel tsd-index-panel">
<details class="tsd-index-content tsd-index-accordion" open><summary class="tsd-accordion-summary tsd-index-summary">
Expand Down Expand Up @@ -64,7 +64,7 @@ <h5><code class="tsd-tag ts-flagRest">Rest</code> <span class="tsd-signature-sym
<h4 class="tsd-returns-title">Returns <a href="_tonconnect_sdk.ParseHexError.html" class="tsd-signature-type" data-tsd-kind="Class">ParseHexError</a></h4><aside class="tsd-sources">
<p>Overrides <a href="_tonconnect_sdk.TonConnectError.html">TonConnectError</a>.<a href="_tonconnect_sdk.TonConnectError.html#constructor">constructor</a></p>
<ul>
<li>Defined in <a href="https://github.com/ton-connect/sdk/blob/b360857/packages/sdk/src/errors/binary/parse-hex.error.ts#L11">packages/sdk/src/errors/binary/parse-hex.error.ts:11</a></li></ul></aside></li></ul></section></section>
<li>Defined in <a href="https://github.com/ton-connect/sdk/blob/1be15d8/packages/sdk/src/errors/binary/parse-hex.error.ts#L11">packages/sdk/src/errors/binary/parse-hex.error.ts:11</a></li></ul></aside></li></ul></section></section>
<section class="tsd-panel-group tsd-member-group">
<h2>Properties</h2>
<section class="tsd-panel tsd-member tsd-kind-property tsd-parent-kind-class tsd-is-inherited tsd-is-external"><a id="cause" class="tsd-anchor"></a>
Expand Down
Loading