Using kitchen scissors or a sharp knife, cut the stemmed and seeded chiles lengthwise into thin strips and place them in a mixing bowl. Add the onion, garlic, vinegars, oil, salt and sugar to the bowl and toss to mix well. Transfer everything to a container with a tight-fitting lid and refrigerate for at least 8 hours before using.