Skip to content

Conversation

@thevladbog
Copy link
Contributor

@thevladbog thevladbog commented Oct 28, 2025

Replace direct i18n() function calls with the useTranslation hook pattern across Gallery component, sub-components, and utility functions.


I hereby agree to the terms of the CLA available at: https://yandex.ru/legal/cla/?lang=ru


closes #342

Replace direct i18n() function calls with the useTranslation hook pattern
across Gallery component, sub-components, and utility functions. Add type
definitions for i18n keysets.
@thevladbog thevladbog changed the title 342 use hook instead direct call to i18n feat(Gallery): use useTranslation hook instead of direct i18n calls Oct 28, 2025
@thevladbog thevladbog marked this pull request as ready for review October 28, 2025 20:54
@thevladbog thevladbog requested a review from kseniya57 as a code owner October 28, 2025 20:54
@korvin89 korvin89 changed the title feat(Gallery): use useTranslation hook instead of direct i18n calls refactor(Gallery): use useTranslation hook instead of direct i18n calls Oct 29, 2025
@gravity-ui-bot
Copy link
Contributor

Preview is ready.

@korvin89 korvin89 merged commit 6d0c899 into gravity-ui:main Oct 29, 2025
4 checks passed
@thevladbog thevladbog deleted the 342-use-hook-instead-direct-call-to-i18n branch October 29, 2025 17:21
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Gallery: use i18n.useTranslation hook

4 participants