fix: strings
This commit is contained in:
1 parent
7522879e2a
commit
c50b45f9ec
2 files changed
+3
-4
No files matched your search
@@ -46,10 +46,10 @@ async function downloadTranslations() {
|
|||||||
const translations = downloadResponse.data;
|
const translations = downloadResponse.data;
|
||||||
console.log(`Downloaded translations for ${language}`);
|
console.log(`Downloaded translations for ${language}`);
|
||||||
|
|
||||||
// POEditor'den dönen veri formatını kontrol et ve gerekirse dönüştür
|
// Check the format of data returned from POEditor and convert if necessary
|
||||||
let formattedTranslations = translations;
|
let formattedTranslations = translations;
|
||||||
|
|
||||||
// Eğer dizi formatında geldiyse, key-value formatına dönüştür
|
// If data is in array format, convert it to key-value format
|
||||||
if (Array.isArray(translations)) {
|
if (Array.isArray(translations)) {
|
||||||
console.log(`Converting array format to key-value format for ${language}`);
|
console.log(`Converting array format to key-value format for ${language}`);
|
||||||
formattedTranslations = {};
|
formattedTranslations = {};
|
||||||
|
|||||||
@@ -39,7 +39,6 @@ jobs:
|
|||||||
{
|
{
|
||||||
"name": "poeditor-scripts",
|
"name": "poeditor-scripts",
|
||||||
"version": "1.0.0",
|
"version": "1.0.0",
|
||||||
"type": "module",
|
|
||||||
"private": true,
|
"private": true,
|
||||||
"dependencies": {
|
"dependencies": {
|
||||||
"axios": "^1.6.0",
|
"axios": "^1.6.0",
|
||||||
@@ -57,7 +56,7 @@ jobs:
|
|||||||
env:
|
env:
|
||||||
POEDITOR_API_TOKEN: ${{ secrets.POEDITOR_API_TOKEN }}
|
POEDITOR_API_TOKEN: ${{ secrets.POEDITOR_API_TOKEN }}
|
||||||
POEDITOR_PROJECT_ID: ${{ secrets.POEDITOR_PROJECT_ID }}
|
POEDITOR_PROJECT_ID: ${{ secrets.POEDITOR_PROJECT_ID }}
|
||||||
LANGUAGES: ${{ github.event.inputs.languages || 'tr,gb' }}
|
LANGUAGES: ${{ github.event.inputs.languages || 'tr,en' }}
|
||||||
EXPORT_FORMAT: ${{ github.event.inputs.format || 'key_value_json' }}
|
EXPORT_FORMAT: ${{ github.event.inputs.format || 'key_value_json' }}
|
||||||
run: |
|
run: |
|
||||||
mkdir -p temp
|
mkdir -p temp
|
||||||
|
|||||||
Reference in new issue
Block a user