Skip to content

Commit

Permalink
Bump api (#9476)
Browse files Browse the repository at this point in the history
  • Loading branch information
jacogr authored May 22, 2023
1 parent 6b74cb3 commit 27893d1
Show file tree
Hide file tree
Showing 12 changed files with 405 additions and 181 deletions.
2 changes: 2 additions & 0 deletions I18N.md
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,7 @@

The apps UI allows all strings to be translated. Additionally it has a basic UI that allows for the creation of the required translation files, which will give an overview on the progress for a specific language.


## Updating translations

To update translations, the following process is required.
Expand All @@ -15,6 +16,7 @@ Here you will find a dropdown of all the available languages and all the modules
- once completed with the changes, click the `Generate translation.json` button to download the translation file
- this file can now be added to the repo with a PR to https://github.com/polkadot-js/apps/tree/master/packages/apps/public/locales


## Adding a new language (if not in dropdown above)

The process is similar for the above, but does require a new folder with the language identifier to be added. Create [packages/apps/public/locales/<id>](https://github.com/polkadot-js/apps/tree/master/packages/apps/public/locales) folder with an empty `translation.json` (containing only `{}`). After addition of the folder, run `yarn build:i18n` and then the new language will be available for update as per the process in the previous section.
Expand Down
2 changes: 1 addition & 1 deletion docker/Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,7 @@ ENV WS_URL=

WORKDIR /usr/share/nginx/html

COPY env.sh .
COPY docker/env.sh .

RUN apk add --no-cache bash; chmod +x env.sh

Expand Down
File renamed without changes.
30 changes: 15 additions & 15 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -69,7 +69,7 @@
"devDependencies": {
"@crustio/crust-pin": "^1.0.0",
"@pinata/sdk": "^1.2.1",
"@polkadot/dev": "^0.75.2",
"@polkadot/dev": "^0.75.4",
"@types/chart.js": "^2.9.37",
"@types/file-saver": "^2.0.5",
"@types/react-beautiful-dnd": "^13.1.4",
Expand All @@ -94,24 +94,24 @@
"styled-components": "^5.3.10"
},
"resolutions": {
"@polkadot/api": "^10.7.1",
"@polkadot/api-augment": "^10.7.1",
"@polkadot/api-base": "^10.7.1",
"@polkadot/api-contract": "^10.7.1",
"@polkadot/api-derive": "^10.7.1",
"@polkadot/api": "^10.7.2",
"@polkadot/api-augment": "^10.7.2",
"@polkadot/api-base": "^10.7.2",
"@polkadot/api-contract": "^10.7.2",
"@polkadot/api-derive": "^10.7.2",
"@polkadot/hw-ledger": "^12.2.1",
"@polkadot/keyring": "^12.2.1",
"@polkadot/networks": "^12.2.1",
"@polkadot/phishing": "^0.21.3",
"@polkadot/rpc-augment": "^10.7.1",
"@polkadot/rpc-core": "^10.7.1",
"@polkadot/rpc-provider": "^10.7.1",
"@polkadot/types": "^10.7.1",
"@polkadot/types-augment": "^10.7.1",
"@polkadot/types-codec": "^10.7.1",
"@polkadot/types-create": "^10.7.1",
"@polkadot/types-known": "^10.7.1",
"@polkadot/types-support": "^10.7.1",
"@polkadot/rpc-augment": "^10.7.2",
"@polkadot/rpc-core": "^10.7.2",
"@polkadot/rpc-provider": "^10.7.2",
"@polkadot/types": "^10.7.2",
"@polkadot/types-augment": "^10.7.2",
"@polkadot/types-codec": "^10.7.2",
"@polkadot/types-create": "^10.7.2",
"@polkadot/types-known": "^10.7.2",
"@polkadot/types-support": "^10.7.2",
"@polkadot/util": "^12.2.1",
"@polkadot/util-crypto": "^12.2.1",
"@polkadot/wasm-crypto": "^7.2.1",
Expand Down
8 changes: 4 additions & 4 deletions packages/apps-config/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -34,11 +34,11 @@
"@metaverse-network-sdk/type-definitions": "0.0.1-16",
"@parallel-finance/type-definitions": "1.7.17",
"@phala/typedefs": "0.2.33",
"@polkadot/api": "^10.7.1",
"@polkadot/api-derive": "^10.7.1",
"@polkadot/api": "^10.7.2",
"@polkadot/api-derive": "^10.7.2",
"@polkadot/networks": "^12.2.1",
"@polkadot/types": "^10.7.1",
"@polkadot/types-codec": "^10.7.1",
"@polkadot/types": "^10.7.2",
"@polkadot/types-codec": "^10.7.2",
"@polkadot/util": "^12.2.1",
"@polkadot/wasm-util": "^7.2.1",
"@polkadot/x-fetch": "^12.2.1",
Expand Down
2 changes: 1 addition & 1 deletion packages/apps-electron/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,7 @@
"version": "0.130.2-17-x",
"main": "build/electron.js",
"dependencies": {
"@polkadot/dev": "^0.75.2",
"@polkadot/dev": "^0.75.4",
"@polkadot/react-components": "^0.130.2-17-x",
"electron-log": "^5.0.0-beta.23",
"electron-updater": "^5.3.0",
Expand Down
2 changes: 1 addition & 1 deletion packages/apps/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,7 @@
"dependencies": {
"@polkadot/apps-config": "^0.130.2-17-x",
"@polkadot/apps-routing": "^0.130.2-17-x",
"@polkadot/dev": "^0.75.2",
"@polkadot/dev": "^0.75.4",
"@polkadot/react-api": "^0.130.2-17-x",
"@polkadot/react-components": "^0.130.2-17-x",
"@polkadot/react-hooks": "^0.130.2-17-x",
Expand Down
2 changes: 1 addition & 1 deletion packages/page-contracts/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@
"type": "module",
"version": "0.130.2-17-x",
"dependencies": {
"@polkadot/api-contract": "^10.7.1",
"@polkadot/api-contract": "^10.7.2",
"eventemitter3": "^5.0.1"
},
"peerDependencies": {
Expand Down
4 changes: 2 additions & 2 deletions packages/react-api/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -20,10 +20,10 @@
"path": false
},
"dependencies": {
"@polkadot/api": "^10.7.1",
"@polkadot/api": "^10.7.2",
"@polkadot/extension-compat-metamask": "^0.46.3",
"@polkadot/extension-dapp": "^0.46.3",
"@polkadot/rpc-provider": "^10.7.1",
"@polkadot/rpc-provider": "^10.7.2",
"fflate": "^0.7.4",
"rxjs": "^7.8.1"
},
Expand Down
2 changes: 1 addition & 1 deletion packages/test-support/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,7 @@
"testcontainers": "^9.6.0"
},
"devDependencies": {
"@polkadot/types-support": "^10.7.1",
"@polkadot/types-support": "^10.7.2",
"@testing-library/jest-dom": "^5.16.5",
"tsconfig-paths": "^4.2.0"
},
Expand Down
1 change: 0 additions & 1 deletion packages/test-support/src/keyring/index.ts
Original file line number Diff line number Diff line change
@@ -1,7 +1,6 @@
// Copyright 2017-2023 @polkadot/test-support authors & contributors
// SPDX-License-Identifier: Apache-2.0

export * from './addresses.js';
export * from './addresses.js';
export * from './MemoryStore.js';
export * from './signers.js';
Loading

0 comments on commit 27893d1

Please sign in to comment.