<@U04UQ68083H> is it possible to migrate and exist...
# ory-copilot
p
@chilly-king-10285 is it possible to migrate and existing identity's identity-schema?
c
A message from kapa.ai
Yes, it is possible to migrate an existing identity's identity schema in Ory. Here are the steps to do so: 1. Use versioning to keep track of changes to your identity schema. This allows you to gradually update your identity schema without affecting existing identities. When you want to add additional fields or break compatibility with your current schema, add another version of the schema to the configuration and change the
default_schema_id
to use the new schema. Existing identities will continue to use the old schema, while newly created identities will use the new schema[^1^]. 2. When you're ready to migrate all identities that use the old schema to the new schema, use the REST API to list all identities using the old version and perform the required data transformations[^1^]. 3. You can update the identity using the `updateIdentity API`[^2^]. Save the existing identity, update the saved JSON to match the new identity schema, and then update the identity using PUT[^2^]. 4. You can also use the
patchIdentity API
to change the identity schema and traits directly[^5^]. 5. If you wish to use a different programming language for identity schema migration, you can apply the same logic using the Ory SDK for your programming language[^3^]. 6. After updating the identity, verify that the schema was updated[^4^]. Please note that identity schemas are immutable to prevent inconsistencies in the data. This means, that you cannot update an existing schema. However, you can use the existing schema as a template to create a new schema[^3^]. [^1^]: (source: https://www.ory.sh/docs/kratos/manage-identities/best-practices#updating-identity-schemas) [^2^]: (source: https://www.ory.sh/docs/identities/model/manage-identity-schema#update-identities-to-use-a-new-schema) [^3^]: (source: https://www.ory.sh/docs/identities/model/manage-identity-schema#update-identity-schemas) [^4^]: (source: https://www.ory.sh/docs/identities/model/manage-identity-schema#update-identities-to-use-a-new-schema) [^5^]: (source: https://www.ory.sh/docs/identities/model/manage-identity-schema#update-identities-to-use-a-new-schema)
p
@chilly-king-10285 how is ORY aware of locale, can it send multilingual messages, translate the UI?
c
A message from kapa.ai
Yes, Ory is capable of handling multilingual messages and translating the user interface. Here's how it works: 1. Locale Awareness: Ory uses the
Accept-Language
header to determine the language to use for the Account Experience[^1^]. This is typically set by the user's browser based on their language preferences. 2. Multilingual Messages: The Account Experience is available in English (fallback), Spanish, and German[^1^]. If you want to add a new language, you can open a pull request in the [ory/elements repository](https://github.com/ory/elements#internalization-i18n)[^1^]. 3. Customizing Labels: To customize the labels, you would need to provide your own translation file[^2^]. You can use the
IntlProvider
component to set the preferred language[^2^]. For example, to set the language to Portuguese, you would use `<IntlProvider locale="pt" />`[^2^]. 4. Translating the UI: The Account Experience can be themed using the Ory Console[^1^]. It is also possible to set a custom logo and favicon[^1^]. Please note that custom translations are not supported at the moment[^1^]. [^1^]: (source: https://www.ory.sh/docs/account-experience) [^2^]: (source: https://github.com/ory/elements/discussions/157)