-
Notifications
You must be signed in to change notification settings - Fork 3
Localisation embed - docV #518
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
Conversation
Support bundled languages
Update embed iframes to set current locale
extract strings from signature and navigation screens
Co-authored-by: prfectionist[bot] <187910262+prfectionist[bot]@users.noreply.github.com>
PR Reviewer Guide 🔍Here are some key observations to aid the review process:
|
beastawakens
left a comment
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.
One query, everything else looks fine!
beastawakens
left a comment
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.
LGTM!
User description
Add localisation support in docV
PR Type
Enhancement
Description
Add comprehensive localization support for document verification embed with translation keys
Implement dynamic page translation system with
data-i18nattributes andapplyPageTranslations()functionAdd Arabic (ar-EG) and English (en-GB) translation files with page-specific strings
Set document language and direction attributes based on selected locale
Prevent flash of untranslated content by hiding main element until translations load
File Walkthrough
doc-verification.js
Implement dynamic translation system and localize UI stringspackages/embed/src/js/doc-verification.js
t,getDirection) from localizationmodule
applyPageTranslations()function to translate elements withdata-i18nattributesconfiguration load
t()functionflicker
doc-verification.html
Add translation attributes to HTML elementspackages/embed/src/doc-verification.html
data-i18nattributes to all user-facing text elementsflash
error screens
ar-EG.json
Add Arabic translations for document verification pagespackages/web-components/locales/ar-EG.json
and error pages
en-GB.json
Add English translations for document verification pagespackages/web-components/locales/en-GB.json
and error pages