import Foundation

let count = CommandLine.arguments.count
guard count > 1 else {
    abort()
}

let path = CommandLine.arguments[1]

if CommandLine.arguments.contains("export") {
    Process.launchedProcess(launchPath: "\(path)/scripts/localization_extract", arguments: [path]).waitUntilExit()
    exportLocalizationsFromSourceCode(path)
}

if CommandLine.arguments.contains("import") {
    importLocalizationsFromTWN(path)
}

import Foundation

let count = CommandLine.arguments.count
guard count > 1 else {
    abort()
}

let path = CommandLine.arguments[1]

//Process.launchedProcess(launchPath: "\(path)/scripts/localization_extract", arguments: [path]).waitUntilExit()

if CommandLine.arguments.contains("export") {
    exportLocalizationsFromSourceCode(path)
}

if CommandLine.arguments.contains("import") {
    importLocalizationsFromTWN(path)
}

Revert "run localization_extract along with the export"
Revert "run localization_extract along with the export"

This reverts commit ff0861e646b55f59314f166b3c2012db29f951b9.
