Crowdin UIKit created for help create new web interface of integrations.
Just copy web-component code and use it on your page
Some crowdin-h1 titleSome crowdin-h2 titleSome crowdin-h3 titleSome crowdin-h4 titleSome crowdin-h5 textSome crowdin-p base textSome link Some external link
Crowdin also provide simple api to get nice custom material icons. To use it just copy text representation from https://material.io/resources/icons/?search=c&icon=supervisor_account&style=round And place that text representation beetwin crowdin-font-icon open/close tag.
As always font-icons support easy way to change it size and color or icon at all, by changing text representation searchautorenewbackupdonecodecontactlessdone_allIf you need some dynamic icon that represent some working progress just copy next part of code
Also we have nice styled buttons. Few type of buttons 'primary', 'secondary', 'outlined' and 'icon' You can disable each button, add icon to button or make button in-progress
You can grab text icon representations from https://material.io/resources/icons/?search=c&icon=supervisor_account&style=round To use crowdin-button just copy and paste button code representation, change text on it, change is-loading, disable flags... If you need some icon, add icon-before or icon-after key, with icon text representation. As always you can use onclick, or document event listeners on button click. Button primaryButton primaryButton primaryButton primaryButton primaryaccount_circle Button SecondaryButton SecondaryButton loadingButton SecondaryButton Secondaryaccount_circle Button OutlinedButton OutlinedButton OutlinedButton OutlinedButton Outlinedaccount_circle searchautorenewbackupdonecodecontactlessdone_all https://material.io/resources/icons/?search=c&icon=supervisor_account&style=round Buttons with interactions: Document class listenerOn Click use functionOn click actionMenu button more_vert Save Save (full button clickable) Save Save
On this tab you can find form useful components.
You need just copy it and adjust a bit for your usecase.
Toggle is multiToggle is searchableToggle close on selectToggle select all optionToggle opens upGet select valueSet default value
Get select value 2Set default value 2Push new optionsCrowdin select support to use HTML as option body
If you need some simple tooltip you can wrap some content with crowdin-tooltip component. By default it use onHover toggle, you can change it to click Also you can change delay in miliseconds, position one of [top|bottom|left|right]
And if you want show tooltip when page loaded use is-instantly-show flag help_outlinehelp_outlinehelp_outlinehelp_outlineget checkbox valuesget checkbox valueset checkbox values Get radio value Get input valuesGet input valueSet input values Get textarea valueSet textarea value Get range valueSet range value
Drag and drop file upload crowdin-dnd-upload Simple crowdin card component, use it when you need mark some block of information
Simplelight-filledshadowedIncrease paddingRemove paddingRemove padding topRemove padding bottomAlso you can combain few types in same time If you need display some progress use next simple component. If you need display some information in popUp modal copy code of next simple component. some nice important information comes here
DoneChange close button title
Toggle modal openIf you need show nice message thats say nothing to display, use code below:If you want add user possibility to easy copy some part of code just copy and paste next component and adjust it a bit Change code property to what you wan't get into clipboard If you need display some information in nice styled tabs just copy next part of code and adjust it a bit.
content of first tab
content of second tab
content of third tab
If you need show some message to user, after done some action you can use simple component crowdin-toasts And use it method pushToastsPush toast If you need to show progress on completing actions you can use simple component crowdin-async-progress And use it method pushJobsPush jobsUpdate jobsPush new random jobRemove job by id 3Clear jobs If you need to show some nice message you can use simple component crowdin-alert
Some message Some message text Some message text Some message text Some message text Some message text
Corowdin File component is the easy way to get simple file tree viewer. To use it just copy and paste code representation. By default crowdin-files-component is on selectable mode, but you can easy change it mode to clickable. Toggle clickableToggle is-loadingToggle one level fetching
Filter change listenerIf you want to listen filter change event use next code:Toggle filter change listenersetFilesData method To set files data just use crowdin-files-component method setFilesData, like on sample below: Set different files data
Each action on File component trigger custom event. With listening on this custom event you can do some actions for user. Example. Load content for just opened folder, open selected file etc. Just copy and past code below to have event listenersgetSelected methodIf you need get selected files and foldersGet selectedsetSelected methodIf you need programaticaly set selected files or foldersSet selectedgetFilesData methodIf you need programaticaly get files and foldersGet dataFiles with labelsAdd Labeled
Simple integration component Toggle Integration descriptionToggle Integration nameToggle Integration level fetchingToggle is Crowdin loadingToggle is Integration loadingToggle To Crowdin processToggle To Integration processToggle scheduleToggle integration schedule savingToggle async progressToggle Integration menu buttonToggle Integration title slottedToggle Integration slottedSet crowdin data and open folderSet integration dataSet languages dataSet file progress dataToggle filter listeners All content pasted between opening and closed tag crowdin-simple-integration used as integration title or will be placed as integration side content This component is a complex solution to simplify integration development. This component generate few custom events: refreshFilesList when refresh button is pressed uploadFilesToCrowdin when sunc to Crowdin button is pressed uploadFilesToIntegration when sunc to integration button is pressed also each crowdin-files-component has two custom events that we can listen and interact: crowdinFilesSelectedChanged when some file selected on integration or Crowdin side crowdinFilesFolderToggled when some folder toggled on integration or Crowdin side crowdinFilterChange and integrationFilterChange when allow-filter-change-listener attribute is set and respective filter value changed.
You can add listeners to interact on this events. Also this component has few methods to set data.setCrowdinFilesDataUsed to set data as crowdin files data, and display it on left side of integration componentSet crowdin data and open foldersetIntegrationFilesDataUsed to set data as integration files data, and display it on right side of integration componentSet integration datasetCrowdinLanguagesDataUsed to add languages data to crowdin files, and display it on each Crowdin fileSet Languages dataaddCrowdinFileProgressUsed to add translation/proofreading progress to crowdin files, and display it on each Crowdin fileSet file progress datagetIntegrationFilesDataUsed to get data from right side of integration componentGet integration datagetCrowdinFilesDataUsed to get data from left side of integration componentGet integration data
Filtering
Set total recrods count to 1001Toggle is LoadingToggle selectableToggle searchableConsole log table datadelete Table Reccord By Idpush Table RecordsUpdate Table RecordsConsole log selected recordsAdd selected event listenerset Selected