# i18n-tools-testing-effectiva

> ## In design project(beu, cross):

Latest version **1.1.1** (published 2023-06-19) · ISC license · 0 weekly downloads

## Install

```sh
npm install i18n-tools-testing-effectiva
pnpm add i18n-tools-testing-effectiva
yarn add i18n-tools-testing-effectiva
bun add i18n-tools-testing-effectiva
```

Provides the command `i18n-tools-testing-effectiva`.

## 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.1.1 |
| Published | 2023-06-19 |
| First published | 2023-06-19 |
| Weekly downloads | 0 |
| License | ISC |
| TypeScript types | none |
| Module format | CommonJS |
| Dependencies | 1 |
| Unpacked size | 4.4 KB |
| Known vulnerabilities | 0 |
| Install scripts | no |
| Maintainers | luka.jaredic |

## Links

- npm: https://www.npmjs.com/package/i18n-tools-testing-effectiva
- Repository: https://github.com/EffectivaStudio/i18n-tools
- Homepage: https://github.com/EffectivaStudio/i18n-tools#readme
- Issues: https://github.com/EffectivaStudio/i18n-tools/issues
- npm.io page: https://npm.io/package/i18n-tools-testing-effectiva

## Dependencies (1)

- [yaml](https://npm.io/package/yaml.md) ^2.3.1

## Recent versions

- 1.1.1 (latest) — 2023-06-19
- 1.0.1 — 2023-06-19
- 1.0.0 — 2023-06-19

## README

# Instructions

## In design project(beu, cross):

- npm i i18n-tools-testing-effectiva
- at root, add a mjs file (eg. export-translations.mjs) with the following content:
```
import { join, dirname } from "path";
import exportT from "i18n-tools/t-to-yml.mjs";
import { fileURLToPath } from "url";

let fileName = process.argv[2];
if (!fileName) throw new Error("Missing argument: the name of the yml file!");
if (!fileName.endsWith(".yml")) fileName += ".yml";

const __dirname = dirname(fileURLToPath(import.meta.url));

const beunityFolder = {
  path: join(__dirname, "..", "components"),
  prefix: "bu",
  subtitle: "beunity_components",
};
const effectivaFolder = {
  // path to node_modules installation of lit components
  path: join(
    __dirname,
    "..",
    "node_modules",
    "@effectivastudio",
    "lit-components",
    "components"
  ),
  prefix: "ef",
  subtitle: "web_components",
};

exportT([effectivaFolder, beunityFolder], join(process.cwd(), fileName));

```
- add npm script: "export-translations": "node ./export_translations.mjs"

## in parent project (ruby project)

- install design package
- add npm script: "export-design-translations": "npm run export-translations --prefix {{path to design project}}"
- npm run export-translations {{desired_yml_file_path}}

---
_Source: https://npm.io/package/i18n-tools-testing-effectiva · Machine-readable twin of the npm.io package page. Health data is recomputed on every publish._
