Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

feat!: migrate to i18n 0.6.0 #11

Merged
merged 4 commits into from
Aug 11, 2022
Merged

feat!: migrate to i18n 0.6.0 #11

merged 4 commits into from
Aug 11, 2022

Conversation

ierehon1905
Copy link
Contributor

Resolves #10

@ierehon1905 ierehon1905 self-assigned this Aug 10, 2022
@ierehon1905 ierehon1905 requested a review from jhoncool August 10, 2022 19:47
@jhoncool jhoncool requested a review from korvin89 August 11, 2022 08:04

import en from './en.json';
import ru from './ru.json';

export enum LANGS {
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

It should be a string union

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

fixed

@jhoncool
Copy link
Collaborator

Let's add an example of using DashKit with i18n in README.md


import en from './en.json';
import ru from './ru.json';

export type LANGS = 'ru' | 'en';
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Could you rename this type to Lang?

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

renamed

@ierehon1905
Copy link
Contributor Author

Let's add an example of using DashKit with i18n in README.md

@jhoncool made a small example in readme
image

@ierehon1905 ierehon1905 merged commit 8cbdda6 into main Aug 11, 2022
@ierehon1905 ierehon1905 deleted the update-i18n branch August 11, 2022 10:08
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.

Update @yandex-cloud/i18n package version
3 participants