Skip to content

Commit

Permalink
feat: transfer package to gravity-ui (#32)
Browse files Browse the repository at this point in the history
Release-As: 1.0.0
  • Loading branch information
amje authored Sep 8, 2022
1 parent 1d01348 commit c61a0bf
Show file tree
Hide file tree
Showing 9 changed files with 103 additions and 132 deletions.
2 changes: 1 addition & 1 deletion .eslintrc
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
{
"extends": ["@yandex-cloud/eslint-config", "@yandex-cloud/eslint-config/server"],
"extends": ["@gravity-ui/eslint-config", "@gravity-ui/eslint-config/server"],
"root": true
}
13 changes: 6 additions & 7 deletions .github/workflows/release.yml
Original file line number Diff line number Diff line change
@@ -1,15 +1,14 @@
name: Release

on:
push:
branches: [main]

name: release

jobs:
release:
runs-on: ubuntu-latest
steps:
- uses: yandex-cloud/ui-release-action@main
with:
github-token: ${{ secrets.YC_UI_BOT_GITHUB_TOKEN }}
npm-token: ${{ secrets.YC_UI_BOT_NPM_TOKEN }}
node-version: 14
- uses: gravity-ui/release-action@v1
with:
github-token: ${{ secrets.GRAVITY_UI_BOT_GITHUB_TOKEN }}
npm-token: ${{ secrets.GRAVITY_UI_BOT_NPM_TOKEN }}
1 change: 1 addition & 0 deletions .npmrc
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
registry=https://registry.npmjs.org
1 change: 1 addition & 0 deletions .nvmrc
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
14
8 changes: 4 additions & 4 deletions README.md
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
## I18N utilities

Utilities in the I18N package are designed for internationalization of Yandex Cloud UI services.
Utilities in the I18N package are designed for internationalization of Gravity UI services.

### Breaking changes in 0.6.0

Expand All @@ -10,7 +10,7 @@ Utilities in the I18N package are designed for internationalization of Yandex Cl

### Install

`npm install --save @yandex-cloud/i18n`
`npm install --save @gravity-ui/i18n`

### API

Expand Down Expand Up @@ -141,7 +141,7 @@ The configuration function accepts an object with languages as keys, and plurali
A pluralization function accepts a number and the `PluralForm` enum, and is expected to return one of the enum values depending on the provided number.

```js
const {I18N} = require('@yandex-cloud/i18n');
const {I18N} = require('@gravity-ui/i18n');

const i18n = new I18N();

Expand Down Expand Up @@ -226,7 +226,7 @@ In your `ui/utils/i18n` directories (where you configure i18n and export it to b
```ts
// Example from the console

import {I18NFn} from '@yandex-cloud/i18n';
import {I18NFn} from '@gravity-ui/i18n';
// This must be a typed import!
import type Keysets from '../../../dist/public/build/i18n/data.json';

Expand Down
196 changes: 83 additions & 113 deletions package-lock.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

10 changes: 5 additions & 5 deletions package.json
Original file line number Diff line number Diff line change
@@ -1,12 +1,12 @@
{
"name": "@yandex-cloud/i18n",
"description": "i18n library for Yandex Cloud UI services",
"name": "@gravity-ui/i18n",
"description": "i18n library for Gravity UI services",
"version": "0.6.0",
"license": "MIT",
"main": "build/cjs/index.js",
"module": "build/esm/index.js",
"types": "build/esm/index.d.ts",
"repository": "[email protected]:yandex-cloud/i18n",
"repository": "[email protected]:gravity-ui/i18n",
"scripts": {
"build": "npm run build:clean && npm run build:compile",
"build:compile": "tsc -p tsconfig.json && tsc -p tsconfig.cjs.json",
Expand All @@ -26,9 +26,9 @@
"devDependencies": {
"@commitlint/cli": "15.0.0",
"@commitlint/config-conventional": "15.0.0",
"@gravity-ui/eslint-config": "^1.0.0",
"@gravity-ui/tsconfig": "^1.0.0",
"@types/jest": "27.4.1",
"@yandex-cloud/eslint-config": "^1.0.0",
"@yandex-cloud/tsconfig": "^1.0.0",
"eslint": "8.3.0",
"jest": "27.5.1",
"ts-jest": "27.1.3",
Expand Down
Loading

0 comments on commit c61a0bf

Please sign in to comment.