# gatsby-source-transifex

> Gatsby source plugin for building websites using the Transifex CMS as a data source

Latest version **1.0.0** (published 2019-05-06) · MIT license · 0 weekly downloads

## Install

```sh
npm install gatsby-source-transifex
pnpm add gatsby-source-transifex
yarn add gatsby-source-transifex
bun add gatsby-source-transifex
```

## Health

**Score 15/100 (F)** — status: abandoned.

Positive: no vulnerabilities.

Warnings: low downloads; no types; no esm support.

Negative: abandoned; low maintenance score.

## Facts

| | |
|---|---|
| Version | 1.0.0 |
| Published | 2019-05-06 |
| First published | 2019-05-06 |
| Weekly downloads | 0 |
| License | MIT |
| TypeScript types | none |
| Module format | CommonJS |
| Dependencies | 1 |
| Unpacked size | 14 KB |
| Known vulnerabilities | 0 |
| Install scripts | no |
| GitHub stars | 0 |
| Author | Mikael Kristiansson |
| Maintainers | mikael.kristiansson |
| Keywords | gatsby, gatsby-plugin, gatsby-source-plugin |

## Links

- npm: https://www.npmjs.com/package/gatsby-source-transifex
- Repository: https://github.com/mikaelkristiansson/gatsby-source-transifex
- Homepage: https://github.com/mikaelkristiansson/gatsby-source-transifex/tree/master/#readme
- Issues: https://github.com/mikaelkristiansson/gatsby-source-transifex/issues
- npm.io page: https://npm.io/package/gatsby-source-transifex

## Dependencies (1)

- [node-fetch](https://npm.io/package/node-fetch.md) ^2.5.0

## Alternatives

- [jsforce](https://npm.io/package/jsforce.md) — 851.2K weekly downloads
- [react-native-qrcode-svg](https://npm.io/package/react-native-qrcode-svg.md) — 693.5K weekly downloads
- [@salesforce/plugin-data](https://npm.io/package/@salesforce/plugin-data.md) — 394.9K weekly downloads
- [@backstage/plugin-search-common](https://npm.io/package/@backstage/plugin-search-common.md) — 308.5K weekly downloads
- [@chain-registry/types](https://npm.io/package/@chain-registry/types.md) — 38.4K weekly downloads

## Recent versions

- 1.0.0 (latest) — 2019-05-06

## README

# gatsby-source-transifex

## Install

`npm install --save gatsby-source-transifex`

## How to use

First, you need a way to pass environment variables to the build process, so secrets and other secured data aren't committed to source control. We recommend using [`dotenv`][dotenv] which will then expose environment variables. [Read more about dotenv and using environment variables here][envvars]. Then we can _use_ these environment variables and configure our plugin.

### Using Delivery API

```javascript
// In your gatsby-config.js
module.exports = {
  plugins: [
    {
      resolve: `gatsby-source-transifex`,
      options: {
        organization: `your_organization`,
        project: `your_project`,
        source_lang_code: `en`, // default lang
        locales: [`de`,`sv`], // array of all translated lang
        auth: `${process.env.TRANSIFEX_USER}:${process.env.TRANSIFEX_TOKEN}`,
      },
    },
  ],
}
```

### Query for all nodes

You might query for **all** of resources:

```graphql
{
  allTransifexTranslationField {
    nodes {
      id
    }
  }
  allTransifexResourceField {
    nodes {
      id
    }
  }
}
```

### Translation as JSON

```graphql
{
  transifexTranslationField(id: {eq: "transifex-{insert-your-resource-id}-{insert-locale}"}) {
    id
    json
  }
}

```

### Resource as JSON

```graphql
{
  transifexResourceField(id: {eq: "transifex-{insert-your-resource-id}"}) {
    id
    json
  }
}

```

### All Translations from locale

```graphql
{
  allTransifexTranslationField(filter: { node_locale: { eq: "de" } }) {
    nodes {
      id
    }
  }
}

```

---
_Source: https://npm.io/package/gatsby-source-transifex · Machine-readable twin of the npm.io package page. Health data is recomputed on every publish._
