Just set an attribute on the option set to store the relevant language code (as a text). Then refer to that in your API calls.