take language dir into account