How can I localize my custom module in Directus?

I’m building a custom module for Directus and want to support localization (i18n). I have a few questions:

  1. What’s the correct way to localize a custom module?
    Do I need to set up the entire i18n structure myself, or does Directus provide utilities for that?

You can refer to this custom extension for an example of how to implement localization in a Directus module:

directus-labs/extensions – seo-plugin OgImage.vue