GitHub user dosubot[bot] added a comment to the discussion: Translation of time passed
<!-- Answer --> The time-related strings like "7 seconds ago", "a minute ago", etc., in the "Last modified" column are generated using the dayjs library with its relativeTime plugin, which supports localization for pt_BR. Superset dynamically sets the locale for dayjs based on your language settings, using a hook that reads the locale from the Redux store (which is typically set via Flask-Babel) and loads the correct locale files for both dayjs and UI components. If your site is already set to pt_BR and most of the interface is translated, these time strings should also appear in Portuguese, such as "há 2 minutos" for "2 minutes ago"—provided the locale is correctly set and loaded in your Superset instance. If you still see these strings in English, check that your Superset configuration is actually setting the locale to pt_BR and that the dayjs pt_BR locale is being loaded. You can verify this by ensuring your browser's language or Superset's user profile language is set to Brazilian Portuguese, and that there are no errors loading locale files in the browser console. No manual translation is needed for these strings, as dayjs provides full support for pt_BR out of the box. For reference, see how Superset handles locale loading and dayjs configuration [here](https://github.com/apache/superset/blob/235c9d2ebf2b14af7afac854b5b15a877695d1b1/superset-frontend/src/hooks/useLocale.ts) and [here](https://github.com/apache/superset/blob/235c9d2ebf2b14af7afac854b5b15a877695d1b1/superset-frontend/src/utils/dates.ts). <!-- Dosu Comment Footer --> *To reply, just mention my name [@dosu](https://go.dosu.dev/dosubot).* --- <sup>How did I do? [Good](https://app.dosu.dev/response-feedback/b67d4b58-f034-4826-8378-a1dceab08a0a?feedback_type=great_response) | [Irrelevant](https://app.dosu.dev/response-feedback/b67d4b58-f034-4826-8378-a1dceab08a0a?feedback_type=irrelevant_answer) | [Incorrect](https://app.dosu.dev/response-feedback/b67d4b58-f034-4826-8378-a1dceab08a0a?feedback_type=incorrect_sources) | [Verbose](https://app.dosu.dev/response-feedback/b67d4b58-f034-4826-8378-a1dceab08a0a?feedback_type=too_verbose) | [Hallucination](https://app.dosu.dev/response-feedback/b67d4b58-f034-4826-8378-a1dceab08a0a?feedback_type=hallucination) | [Report 🐛](https://app.dosu.dev/response-feedback/b67d4b58-f034-4826-8378-a1dceab08a0a?feedback_type=bug_report) | [Other](https://app.dosu.dev/response-feedback/b67d4b58-f034-4826-8378-a1dceab08a0a?feedback_type=other)</sup> [](https://go.dosu.dev/discord-bot) [](https://twitter.com/intent/tweet?text=%40dosu_ai%20helped%20me%20solve%20this%20issue!&url=https%3A//github.com/apache/superset/discussions/33630) GitHub link: https://github.com/apache/superset/discussions/33630#discussioncomment-13321084 ---- This is an automatically sent email for [email protected]. To unsubscribe, please send an email to: [email protected] --------------------------------------------------------------------- To unsubscribe, e-mail: [email protected] For additional commands, e-mail: [email protected]
