Skip to content

Commit

Permalink
Add missing example Snap links (#1270)
Browse files Browse the repository at this point in the history
  • Loading branch information
alexandratran authored Apr 16, 2024
1 parent b8148f0 commit ea0a4f0
Show file tree
Hide file tree
Showing 4 changed files with 18 additions and 1 deletion.
5 changes: 5 additions & 0 deletions snaps/features/localization.md
Original file line number Diff line number Diff line change
Expand Up @@ -135,3 +135,8 @@ For each field that needs to be localized, replace its text with `{{ <fieldName>
When displaying this metadata to the user, MetaMask searches for the proper locale file and replaces
the template string with its translation.
If it doesn't find the user's locale, MetaMask uses English (`en`) as the default.

## Example

See the [`@metamask/localization-example-snap`](https://github.com/MetaMask/snaps/tree/main/packages/examples/packages/localization)
package for a full example of localizing a Snap.
2 changes: 2 additions & 0 deletions snaps/features/non-evm-networks.md
Original file line number Diff line number Diff line change
Expand Up @@ -111,3 +111,5 @@ The following are examples of existing Snaps that manage accounts and keys:
- [Dogecoin Snap tutorial](https://github.com/ziad-saab/dogecoin-snap)
- [Consensys StarkNet Snap](https://github.com/Consensys/starknet-snap)
- [Account Labs Bitcoin Snap](https://github.com/snapdao/btcsnap)
- [`@metamask/bip32-example-snap`](https://github.com/MetaMask/snaps/tree/main/packages/examples/packages/bip32)
- [`@metamask/bip44-example-snap`](https://github.com/MetaMask/snaps/tree/main/packages/examples/packages/bip44)
7 changes: 6 additions & 1 deletion snaps/features/static-files.md
Original file line number Diff line number Diff line change
Expand Up @@ -49,4 +49,9 @@ const contents = await snap.request({

// "0x..."
console.log(contents);
```
```

## Example

See the [`@metamask/get-file-example-snap`](https://github.com/MetaMask/snaps/tree/main/packages/examples/packages/get-file)
package for a full example of handling static files.
5 changes: 5 additions & 0 deletions snaps/how-to/communicate-errors.md
Original file line number Diff line number Diff line change
Expand Up @@ -54,3 +54,8 @@ They have a numeric `code`, a `message` string, and a `data` object.

The [Snaps known errors reference](../reference/known-errors.md) lists all the known errors with
their codes and intended usage.

## Example

See the [`@metamask/error-example-snap`](https://github.com/MetaMask/snaps/tree/main/packages/examples/packages/errors)
package for a full example of communicating errors.

0 comments on commit ea0a4f0

Please sign in to comment.