Transforms a given path to a prefix which can be used for i18n keys. Returns 'root' for empty paths and removes array indices
Transforms a given path to a prefix which can be used for i18n keys. Returns 'root' for empty paths and removes array indices