rogermolas / csv-localizer

Command Line Interface that convert CSV file to iOS, Android or JSON localizable strings
Apache License 2.0
91 stars 28 forks source link

UnboundLocalError: local variable 'LANG_KEYS' referenced before assignment #13

Closed hiasel closed 1 year ago

hiasel commented 1 year ago

I tried to convert the provided sample.csv (https://github.com/rogermolas/csv-localizer/blob/master/sample.csv) to ios localized strings using: csv-localizer -p ios -i sample.csv -o ios-output. However I receive the following error and nothing is generated. Any help would be much appreciated :)

Start Localizing ....

------------------------------------
Generated output directory: ios-output
Traceback (most recent call last):
  File "/Users/myuser/homebrew/bin/csv-localizer", line 278, in <module>
    main(args, loglevel)
  File "/Users/myuser/homebrew/bin/csv-localizer", line 70, in main
    generate_keys(IN_PATH, OUTPUT_DIR, PLATFORM, DELIMITER)
  File "/Users/myuser/homebrew/bin/csv-localizer", line 121, in generate_keys
    start_localize_ios(source_path, allwrites, LANG_KEYS, delimiter)
UnboundLocalError: local variable 'LANG_KEYS' referenced before assignment
hiasel commented 1 year ago

Duplicate of #8

Nevermind, this is a duplicate issue. It works fine using the commands you described in the issue.