Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Sign inDemoInstall
Socket

@eliumhq/elium-i18n

Package Overview
Dependencies
Maintainers
7
Versions
13
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@eliumhq/elium-i18n - npm Package Compare versions

Comparing version 2.1.2 to 2.2.0

2

package.json

@@ -7,3 +7,3 @@ {

"license": "UNLICENSED",
"version": "2.1.2",
"version": "2.2.0",
"engines": {

@@ -10,0 +10,0 @@ "node": ">=9",

@@ -19,5 +19,5 @@ const path = require('path')

module.exports = async (sourceDir, destinationDir) => {
module.exports = async ({ source, target }) => {
console.log('Compiling PO to JSON')
const directories = getDirectories(sourceDir, destinationDir)
const directories = getDirectories(source, target)

@@ -27,5 +27,5 @@ directories.forEach(item => {

console.log(`Compiling ${locale}`)
compile(locale, sourceDir, destinationDir)
compile(locale, source, target)
})
console.log('Finished')
}

@@ -104,3 +104,3 @@ const fs = require('fs')

headers: {
'Charset': 'utf-8',
Charset: 'utf-8',
'Project-Id-Version': 'Elium',

@@ -110,3 +110,3 @@ 'Report-Msgid-Bugs-To': 'dev@elium.com',

'Content-Transfer-Encoding': '8bit',
'Language': 'en',
Language: 'en',
'POT-Creation-Date': `${now.getUTCFullYear()}-${now.getUTCMonth()}-${now.getUTCDate()} ${now.getUTCHours()}:${now.getUTCMinutes()} Z`,

@@ -113,0 +113,0 @@ 'MIME-Version': '1.0'

@@ -7,3 +7,3 @@ const { exec } = require('./utils')

module.exports = async (languages, source) => {
module.exports = async ({ languages, source, branch }) => {
console.log('Pulling PO files...')

@@ -15,5 +15,7 @@ const langs = languages

: '-a '
const branchParam = branch ? `-b ${branch}` : ''
try {
// We have to force the pull otherwise existing languages are skipped
await exec(`tx pull ${langs} -f`)
await exec(`tx pull ${langs} --parallel -f -{branchParam}`)

@@ -23,3 +25,3 @@ // Transifex does not download the translation file for the source language

console.log('Download translations for source language')
await exec(`tx pull -l ${source} -f`)
await exec(`tx pull -l ${source} --parallel -f ${branchParam}`)
}

@@ -26,0 +28,0 @@ console.log('Translations downloaded.')

const { exec } = require('./utils')
module.exports = async () => {
module.exports = async ({ branch }) => {
console.log('Pushing POT to Transifex...')
try {
await exec(`tx push -s`)
await exec(`tx push -s --parallel ${branch ? '-b ' + branch : ''}`)
console.log('Template pushed.')

@@ -8,0 +8,0 @@ } catch (err) {

Sorry, the diff of this file is not supported yet

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc