Support the multi language

Adding $locale and using their attributes.