Commit c50b45f 1 parent 7522879 commit c50b45f Copy full SHA for c50b45f
File tree 2 files changed +3
-4
lines changed
2 files changed +3
-4
lines changed Original file line number Diff line number Diff line change @@ -46,10 +46,10 @@ async function downloadTranslations() {
46
46
const translations = downloadResponse . data ;
47
47
console . log ( `Downloaded translations for ${ language } ` ) ;
48
48
49
- // POEditor'den dönen veri formatını kontrol et ve gerekirse dönüştür
49
+ // Check the format of data returned from POEditor and convert if necessary
50
50
let formattedTranslations = translations ;
51
51
52
- // Eğer dizi formatında geldiyse, key-value formatına dönüştür
52
+ // If data is in array format, convert it to key-value format
53
53
if ( Array . isArray ( translations ) ) {
54
54
console . log ( `Converting array format to key-value format for ${ language } ` ) ;
55
55
formattedTranslations = { } ;
Original file line number Diff line number Diff line change 39
39
{
40
40
"name": "poeditor-scripts",
41
41
"version": "1.0.0",
42
- "type": "module",
43
42
"private": true,
44
43
"dependencies": {
45
44
"axios": "^1.6.0",
57
56
env :
58
57
POEDITOR_API_TOKEN : ${{ secrets.POEDITOR_API_TOKEN }}
59
58
POEDITOR_PROJECT_ID : ${{ secrets.POEDITOR_PROJECT_ID }}
60
- LANGUAGES : ${{ github.event.inputs.languages || 'tr,gb ' }}
59
+ LANGUAGES : ${{ github.event.inputs.languages || 'tr,en ' }}
61
60
EXPORT_FORMAT : ${{ github.event.inputs.format || 'key_value_json' }}
62
61
run : |
63
62
mkdir -p temp
You can’t perform that action at this time.
0 commit comments