fix wrong index when path name contains the domain
fix wrong index when path name contains the domain

dirname.indexOf(domain) returns wrong index when the domain is earlier in the path, e.g.
dev/.../de/translation.json returns index 0 instead of 8
using lastIndexOf fixes the problem
i18next/i18next-gettext-converter