I have a custom module, and i try to set default value for a taxonomy field in node form.
I use form alter hook.

$form['taxonomy'][18]["#default_value"][0] = arg(3);

It works except when the vocabulary translation mode is "Localize terms".