Registry / devops / l10n-tools-syncer-l10n-storage

l10n-tools-syncer-l10n-storage

JSON →
library1.4.2jsnpmunverified

l10n-tools-syncer-l10n-storage is a Node.js package (v1.4.2) for syncing localization files to the TPC Agent L10n Storage service. Part of the l10n-tools ecosystem, it requires l10n-tools-core v8.4.0+ as a peer dependency. It provides a CLI and programmatic API for uploading locale data, integrating with CI/CD pipelines. Built specifically for TPC internal infrastructure, it is not widely adopted externally. Ships TypeScript types, supports Node >= 22.19.0.

npm install l10n-tools-syncer-l10n-storage
INSTALL
IMPORT
SIG · L10N-TOOLS-SYNCER-
L
l10n-tools-syncer-l10n-storage
devopsjavascriptv1.4.2
harness data pending
Install & Compatibility
Where this runs

No compatibility data collected yet for this library.

Code
Verified usage

Verified import paths — ran on the pinned version, not inferred.

Syncer
import { Syncer } from 'l10n-tools-syncer-l10n-storage'
const { Syncer } = require('l10n-tools-syncer-l10n-storage')
Package is ESM-only; use named import.
sync
import { sync } from 'l10n-tools-syncer-l10n-storage'
import sync from 'l10n-tools-syncer-l10n-storage'
sync is a named export, not default. Use named import.
StorageConfig
import type { StorageConfig } from 'l10n-tools-syncer-l10n-storage'
Type import; use import type for types to avoid runtime inclusion.

Creates a Syncer instance with configuration and uploads locale files to the storage service.

import { Syncer } from 'l10n-tools-syncer-l10n-storage'; import { Config } from 'l10n-tools-core'; const config: Config = { localeDir: './locales', storageUrl: process.env.STORAGE_URL ?? 'https://storage.example.com', apiKey: process.env.API_KEY ?? '', }; const syncer = new Syncer(config); async function uploadLocales() { try { const result = await syncer.upload(); console.log('Upload successful:', result); } catch (err) { console.error('Upload failed:', err); } } uploadLocales();
Debug
Known issues
breakingRequires Node >= 22.19.0
fix
Upgrade Node to >= 22.19.0
affects: <1.0
deprecatedThe default export 'syncer' is deprecated since v1.2. Use named import { Syncer } instead.
fix
Replace import Syncer from '...' with import { Syncer } from '...'
affects: <1.2
gotchaThe StorageConfig interface changed in v1.3: 'storageUrl' renamed to 'baseUrl'.
fix
Use 'baseUrl' property instead of 'storageUrl'.
affects: >=1.3
Errors
Common errors & fixes
Error: Cannot find module 'l10n-tools-core'
Missing peer dependency l10n-tools-core.
fix
npm install l10n-tools-core@^8.4.0
TypeError: syncer.upload is not a function
Using deprecated default import or incorrect import pattern.
fix
Use named import: import { Syncer } from 'l10n-tools-syncer-l10n-storage'
Upgrade
Version history
1.4.2latest on npm
Audit
Dependencies
l10n-tools-corerequiredPeer dependency: provides core types and utilities for localization management.
Agent activity
2 hits · last 30 days
node
2
Resources
l10n-tools-syncer-l10n-storage — npm install l10n-tools-syncer-l10n-storage · libregistry