-
Notifications
You must be signed in to change notification settings - Fork 1.7k
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(hitlnext): Adds spanish language support #12056
Conversation
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.
@charlyR, thank you for submitting this pr, good work.
I left 2 comments for you, please review and address changes if necessary.
please also make sure to sign our contributor license agreement in order for us to approve these changes
@@ -16,7 +16,7 @@ import UserName from './UserName' | |||
|
|||
const HandoffItem: FC<IHandoff> = ({ createdAt, id, status, agentId, userConversation, userChannel, user }) => { | |||
const { state, dispatch } = useContext(Context) | |||
|
|||
moment.locale(lang.getLocale()) |
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.
what's this for ?
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.
This is to instruct moment to display elapsed time in the selected language. In spanish it is "dias", "horas", "segundos"
I think the same apply to other languages.
modules/hitlnext/src/views/full/studio-sidebar/components/HandoffItem.tsx
Outdated
Show resolved
Hide resolved
I have already signed the CLA, but stills appears as pending... |
Hitlnext language currently supports only english and french language.
I have added support for spanish language, and moment date translation to user language.