fix: strings

This commit is contained in:
cihatata committed 2025-03-10 23:46:26 +03:00
1 parent 7522879e2a
commit c50b45f9ec
2 files changed
+3 -4

No files matched your search

+2 -2
View File
@@ -46,10 +46,10 @@ async function downloadTranslations() {
const translations = downloadResponse.data;
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;
// 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)) {
console.log(`Converting array format to key-value format for ${language}`);
formattedTranslations = {};
+1 -2
View File
@@ -39,7 +39,6 @@ jobs:
{
"name": "poeditor-scripts",
"version": "1.0.0",
"type": "module",
"private": true,
"dependencies": {
"axios": "^1.6.0",
@@ -57,7 +56,7 @@ jobs:
env:
POEDITOR_API_TOKEN: ${{ secrets.POEDITOR_API_TOKEN }}
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' }}
run: |
mkdir -p temp