open-index/open-npm huggingface dataset:
npm package: @steadycursor/i18n-gpt-translate
Description: A CLI tool for translating internationalization (i18n) json files using Open AI.
Latest version: 1.1.4

# i18n-gpt-translate

A CLI tool for translating internationalization (i18n) json files using Open AI.

Run with script with command `i18n-gpt-translate`.

![preview](https://raw.githubusercontent.com/steadycursor/i18n-gpt-translate/main/assets/preview.png)

## Features

- Automatically translates missing keys and and also it translate values, where value is empty (`""`).
- Translate as many json files for as many languages as you wish.
- You do not need to specify what languages do you have, script will automatically detect it.

### Options

- `--localesPath` (required) - path to folder, where your locales folders (en, fr, it, etc.) exists.
- `--defaultLanguage` (required) - default language, that will be used as source for translation. This has to be one of the folders of `--localesPath`.
- `--token` (required) - ChatGPT token, that you can generate [here](https://platform.openai.com/settings/profile?tab=api-keys).

### Installation

```
npm install @steadycursor/i18n-gpt-translate
```

### Example Usage

```
i18n-gpt-translate run --localesPath=./tests/working/locales --defaultLanguage=en --token=YOUR_TOKEN_HERE
```

### Demo

### Before running script

```
# /locales/en/common.json
{
  "AccountsCommandPalette": {
    "inputPlaceholder": "Account name...",
    "noResults": {
      "title": "No results found"
    }
  },
  "AccountSetting": {
    "enableDeviceSosImporter": {
      "card": {
        "description": "This setting affects whether devices available on platform will be automatically registered in this CMS.",
        "title": "Setting up automatic device importing"
      }
    }
  }
}
```

```
# /locales/cs/common.json
{
  "AccountsCommandPalette": {
    // 👉 missing key inputPlaceholder with translation
    "noResults": {
      "title": "Nebyly nalezeny žádné výsledky"
    }
  },
  "AccountSetting": {
    "enableDeviceSosImporter": {
      "card": {
        "description": "", // 👈 translation is missing, value is empty
        "title": "Nastavení automatického importu zařízení"
      }
    }
  }
}
```

### After running script

```
# /locales/cs/common.json
{
  "AccountsCommandPalette": {
    "inputPlaceholder": "Název účtu...", 👈
    "noResults": {
      "title": "Nebyly nalezeny žádné výsledky"
    }
  },
  "AccountSetting": {
    "enableDeviceSosImporter": {
      "card": {
        "description": "Toto nastavení ovlivňuje, zda zařízení dostupná na platformě budou automaticky registrována v tomto CMS.", 👈
        "title": "Nastavení automatického importu zařízení"
      }
    }
  }
}
```
npm package: @steakhouse/eslint-config-pancake
Description: Eslint config for SteakHouse
Author: RabbitDoge
Latest version: 0.10.0

# eslint-config-pancake

Pancake Eslint config with:

- Airbnb config
- Typescript
- Prettier

## Usage

```
npx install-peerdeps --dev @pancakeswap-libs/eslint-config-pancake
```

Add `"extends": "@pancakeswap-libs/eslint-config-pancake"` to your eslint config file.
npm package: @steakhouse/uikit
Description: Set of UI components for steakhouse projects
Author: stanfinance
Latest version: 0.10.0

# 🥞 Pancake UIkit

[![Version](https://img.shields.io/npm/v/@pancakeswap-libs/uikit)](https://www.npmjs.com/package/@pancakeswap-libs/uikit) [![Size](https://img.shields.io/bundlephobia/min/@pancakeswap-libs/uikit)](https://www.npmjs.com/package/@pancakeswap-libs/uikit)

Pancake UIkit is a set of React components and hooks used to build pages on Pancake's apps. It also contains a theme file for dark and light mode.

## Install

`yarn add @pancakeswap-libs/uikit`

## Setup

### Theme

Before using Pancake UIkit, you need to provide the theme file to styled-component.

```
import { ThemeProvider } from 'styled-components'
import { light, dark } from '@pancakeswap-libs/uikit'
...
<ThemeProvider theme={isDark}>...</ThemeProvider>
```

### Reset

A reset CSS is available as a global styled component.

```
import { ResetCSS } from '@pancakeswap-libs/uikit'
...
<ResetCSS />
```

### Types

This project is built with Typescript and export all the relevant types.

## How to use the UIkit

If you want to use components from the UIkit, check the [Storybook documentation](https://pancakeswap.github.io/pancake-uikit/)
npm package: @steal-like-a-dev/create-react-app
Description: Minimalist implementation of the popular create-react-app package.
Author: Alexandru Pavaloi
Latest version: 1.1.2

# create-react-app | steal-like-a-dev

<p align="center">
  <a href="https://facebook.github.io/create-react-app/">
    <img src="https://raw.githubusercontent.com/iampava/steal-like-a-dev/master/_assets/create-react-app.png" />
  </a>
</p>

Minimalist implementation of [create-react-app](https://facebook.github.io/create-react-app). Primarily for teaching purposes in my [StealLikeADev.com](https://StealLikeADev.com) tutorial series, BUT since it's actually very usable, I decided to publish it as a [NPM package](https://www.npmjs.com/package/@steal-like-a-dev/create-react-app) as well. 

These docs are "stolen" from create-react-app, but I've left only the parts I've actually implemented. Happy stealing!

## Installation & usage

Install the package globally so that it is available from everywhere in your device:

`$ npm install -g @steal-like-a-dev/create-react-app`

and then run the following command to create a new app called **my-app** in the current folder.

```
stolen-create-react-app my-app
cd my-app
npm start
```

Then open [http://localhost:8080/](http://localhost:8080/) to see your app.
When you’re ready to deploy to production, create a minified bundle with `npm run build`.


## What's included

Your environment will have everything you need to build a modern single-page React app:

* React, JSX, & ES6
* Language extras beyond ES6 like the object spread operator.
* Autoprefixed CSS, so you don’t need -webkit- or other prefixes.
* ~~A fast interactive unit test runner with built-in support for coverage reporting.~~
* A live development server that warns about common mistakes.
* A build script to bundle JS, CSS, and images for production, with hashes and sourcemaps.
* An offline-first service worker and a web app manifest, meeting all the Progressive Web App criteria. (Note: Using the service worker is opt-in).

## Further development & bugfixing

I'll try and keep the code and React dependencies up-to-date, so I'll have a look on this package once in a while. However, I won't be adding any new features because, well... there's already the original out there. But I'll be fixing bugs regarding features already implemented.

<hr/>

<p align="center"> Made with ❤ by <a href="https://iampava.com"> Pava </a></p>
npm package: @steal-like-a-dev/redux-thunk
Description: Minimalist implementation of the popular redux-thunk
Author: Alexandru Pavaloi
Latest version: 1.0.0

# redux-thunk | steal-like-a-dev

Minimalist implementation of [redux-thunk](https://github.com/reduxjs/redux-thunk). Primarily for teaching purposes in my [StealLikeADev.com](https://StealLikeADev.com) tutorial series, BUT since it's actually very usable, I decided to publish it as a [package on NPM](https://www.npmjs.com/package/@steal-like-a-dev/redux-thunk) as well.

These docs are "stolen" from the original library, but I kept only the parts I've implemented, which in this case is pretty much anything. Happy stealing!

## Installation & usage

```
$ npm install @steal-like-a-dev/redux-thunk
```

```javascript
import { createStore, applyMiddleware } from "redux";
import thunk from "@steal-like-a-dev/redux-thunk";
import rootReducer from "./reducers/index";

const INCREMENT_COUNTER = "INCREMENT_COUNTER";

let store = createStore(rootReducer, applyMiddleware(thunk));
store.dispatch(incrementAsync());

function increment() {
  return {
    type: INCREMENT_COUNTER
  };
}

function incrementAsync() {
  return dispatch => {
    setTimeout(() => {
      // Yay! Can invoke sync or async actions with `dispatch`
      dispatch(increment());
    }, 1000);
  };
}
```

## API

### Composition

Any return value from the inner function will be available as the return value of dispatch itself. This is convenient for orchestrating an asynchronous control flow with thunk action creators dispatching each other and returning Promises to wait for each other’s completion:

For more details on Composition check the [official docs](https://github.com/reduxjs/redux-thunk#composition).

### Injecting a Custom Argument

Redux Thunk supports injecting a custom argument using the `withExtraArgument` function:

```javascript
const store = createStore(
  reducer,
  applyMiddleware(thunk.withExtraArgument(api))
);

// later
function fetchUser(id) {
  return (dispatch, getState, api) => {
    // you can use api here
  };
}
```

## Test project

As you can see, there's also a test project included in this repo. You can run it with

`npm run test:dev`

or

`npm run test:prod`

<hr/>

<p align="center"> Made for learning/teaching purposes by <a href="https://iampava.com">Pava</a></p>