[xlm tok] config dict: fix str into int to match definition
match arg doc definition:
```
id2lang (:obj:`Dict[int, str`, `optional`):
```
so replacing str with int.

the inverse is correct.

<!-- This line specifies which issue to close after the pull request is merged. -->
Fixes #6734
