-
Notifications
You must be signed in to change notification settings - Fork 2
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
Conversation
src/i18n/index.ts
Outdated
|
||
import en from './en.json'; | ||
import ru from './ru.json'; | ||
|
||
export enum LANGS { |
There was a problem hiding this comment.
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
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
fixed
Let's add an example of using DashKit with i18n in README.md |
src/i18n/index.ts
Outdated
|
||
import en from './en.json'; | ||
import ru from './ru.json'; | ||
|
||
export type LANGS = 'ru' | 'en'; |
There was a problem hiding this comment.
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?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
renamed
@jhoncool made a small example in readme |
Resolves #10