-
Notifications
You must be signed in to change notification settings - Fork 87
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: multi-lang feature #7450
Draft
siddarth2824
wants to merge
36
commits into
develop
Choose a base branch
from
sid/settings-fe
base: develop
Could not load branches
Branch not found: {{ refName }}
Loading
Could not load tags
Nothing to show
Loading
Are you sure you want to change the base?
Some commits from the old base branch may be removed from the timeline,
and old review comments may become outdated.
Draft
feat: multi-lang feature #7450
Changes from all commits
Commits
Show all changes
36 commits
Select commit
Hold shift + click to select a range
3ad1914
Edit form settings schema to store default language
siddarth2824 495128c
Add views for multi language in settings page
siddarth2824 e394f6a
Add mutations to select default form language
siddarth2824 4472c60
Make default language first in list of languages
siddarth2824 1229402
Add ability to toggle on and off which languages are supported
siddarth2824 4a4041c
Add question list views for each language
siddarth2824 36fe1de
Add tooltip to show that myinfo fields cannot be translated
siddarth2824 3cdd756
feat: add routing to ensure views in multi-language persist
siddarth2824 563d16e
Add translation page
siddarth2824 9daff0e
feat: add title translation field in schema
siddarth2824 4bb15c0
feat: add previous translation as default value
siddarth2824 1f0729c
feat: add icons to show completion of translations
siddarth2824 7ec0d6a
feat: add description translation input
siddarth2824 b357cf9
feat: display translations
siddarth2824 bc3ef8c
feat: display translations on public form
siddarth2824 edcffa9
feat: show translations for start and end page
siddarth2824 807ce79
chore: amend comments
siddarth2824 2013738
feat: add translations for section
siddarth2824 f48e3e3
feat: add translations for field options
siddarth2824 3baa595
fix: extend width of question row in translations section
siddarth2824 51c3b24
fix: remove divider below Tamil language
siddarth2824 f387a52
fix: support all languages on the first instance of turning on multi …
siddarth2824 a6b5675
fix: update mutation
siddarth2824 d069efb
fix: remove language dropdown if form does not support multi lang
siddarth2824 11a5063
fix: change padding between languages and toggle section
siddarth2824 d0c332c
feat: add padding to language and size control component for mobile view
siddarth2824 5b3a0e1
feat: add translations for table field
siddarth2824 c2b14f4
fix: merge conflicts
siddarth2824 b956b1b
fix: validation errors for empty title translations
siddarth2824 7048d0b
fix: duplicate variable export
siddarth2824 40d39bd
fix: use translations as only labels in multi option fields
siddarth2824 9aee902
chore: remove text resize
siddarth2824 571daeb
feat: do not render language control in form end page
siddarth2824 994e7e3
fix: failing tests
siddarth2824 56706ea
fix: add translated description for section
siddarth2824 f07fcf5
fix: show default english field options when no translations are avai…
siddarth2824 File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change | ||||||
---|---|---|---|---|---|---|---|---|
@@ -0,0 +1,15 @@ | ||||||||
export const LanguageTranslation = ( | ||||||||
props: React.SVGProps<SVGSVGElement>, | ||||||||
Check warning on line 2 in frontend/src/assets/icons/LanguageTranslation.tsx GitHub Actions / frontend_lint
|
||||||||
): JSX.Element => ( | ||||||||
<svg | ||||||||
xmlns="http://www.w3.org/2000/svg" | ||||||||
width={24} | ||||||||
height={24} | ||||||||
fill="currentColor" | ||||||||
className="bi bi-translate" | ||||||||
viewBox="0 0 16 16" | ||||||||
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more.
Suggested change
|
||||||||
> | ||||||||
<path d="M4.545 6.714 4.11 8H3l1.862-5h1.284L8 8H6.833l-.435-1.286zm1.634-.736L5.5 3.956h-.049l-.679 2.022z" /> | ||||||||
<path d="M0 2a2 2 0 0 1 2-2h7a2 2 0 0 1 2 2v3h3a2 2 0 0 1 2 2v7a2 2 0 0 1-2 2H7a2 2 0 0 1-2-2v-3H2a2 2 0 0 1-2-2zm2-1a1 1 0 0 0-1 1v7a1 1 0 0 0 1 1h7a1 1 0 0 0 1-1V2a1 1 0 0 0-1-1zm7.138 9.995q.289.451.63.846c-.748.575-1.673 1.001-2.768 1.292.178.217.451.635.555.867 1.125-.359 2.08-.844 2.886-1.494.777.665 1.739 1.165 2.93 1.472.133-.254.414-.673.629-.89-1.125-.253-2.057-.694-2.82-1.284.681-.747 1.222-1.651 1.621-2.757H14V8h-3v1.047h.765c-.318.844-.74 1.546-1.272 2.13a6 6 0 0 1-.415-.492 2 2 0 0 1-.94.31" /> | ||||||||
</svg> | ||||||||
) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
9 changes: 9 additions & 0 deletions
9
frontend/src/features/admin-form/settings/SettingsMultiLangPage.tsx
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,9 @@ | ||
import { MultiLanguageSection } from './components/MultiLanguageSection/MultiLangugageSection' | ||
|
||
export const SettingsMultiLangPage = (): JSX.Element => { | ||
return ( | ||
<> | ||
<MultiLanguageSection /> | ||
</> | ||
) | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.
Oops, something went wrong.
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
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.
I think we shouldn't commit this change!