-
-
Notifications
You must be signed in to change notification settings - Fork 3.8k
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
[WIP] Convert private WebUI strings to i18next #20610
base: master
Are you sure you want to change the base?
[WIP] Convert private WebUI strings to i18next #20610
Commits on Mar 25, 2024
-
Convert translatable strings part1
Search: (<((?!class=).)*?)>QBT_TR\((.+?)\)QBT_TR(\[CONTEXT=.+?\])? Replace: $1 class="qbt-translatable" data-i18n="$3">$3 File glob: src/webui/www/private/**/*.html
Configuration menu - View commit details
-
Copy full SHA for 93a4b98 - Browse repository at this point
Copy the full SHA 93a4b98View commit details -
Convert translatable strings part2
Search: (<.+?class=".+?)(".*?)>QBT_TR\((.+?)\)QBT_TR(\[CONTEXT=.+?\])? Replace: $1 qbt-translatable$2 data-i18n="$3">$3 File glob: src/webui/www/private/**/*.html
Configuration menu - View commit details
-
Copy full SHA for ec528f2 - Browse repository at this point
Copy the full SHA ec528f2View commit details -
Convert translatable strings part3
Search: (<(?:(?!class=).)+?)(\S+?)="QBT_TR\((.+?)\)QBT_TR(?:\[CONTEXT=.+?\])?" Replace: $1class="qbt-translatable" data-i18n="[$2]$3" $2="$3" File glob: src/webui/www/private/**/*.html
Configuration menu - View commit details
-
Copy full SHA for 2c6f63d - Browse repository at this point
Copy the full SHA 2c6f63dView commit details -
Convert translatable strings part4
Search: (<.+?class=".+?)(".*?)(\S+?)="QBT_TR\((.+?)\)QBT_TR(?:\[CONTEXT=.+?\])?" Replace: $1 qbt-translatable$2data-i18n="[$3]$4" $3="$4" File glob: src/webui/www/private/**/*.html
Configuration menu - View commit details
-
Copy full SHA for 74274e7 - Browse repository at this point
Copy the full SHA 74274e7View commit details -
Convert translatable strings part5
Search: (<.+?data-i18n=".+?)(".*?)(\S+?)="QBT_TR\((.+?)\)QBT_TR(?:\[CONTEXT=.+?\])?" Replace: $1;[$3]$4$2$3="$4" File glob: src/webui/www/private/**/*.html
Configuration menu - View commit details
-
Copy full SHA for 45f1891 - Browse repository at this point
Copy the full SHA 45f1891View commit details -
Convert translatable strings part6
Search: (["'])QBT_TR\((.+?)\)QBT_TR(?:\[CONTEXT=.+?\])?\1 Replace: i18next.t($1$2$1) File glob: src/webui/www/private/**/*.html
Configuration menu - View commit details
-
Copy full SHA for e45c36d - Browse repository at this point
Copy the full SHA e45c36dView commit details -
Convert translatable strings part7
Manual conversion to template literal Search: (["'])QBT_TR\((.+?)\)QBT_TR(?:\[CONTEXT=.+?\])?\s*?\1 Replace: i18next.t($1$2$1) File glob: src/webui/www/private/**/*.html
Configuration menu - View commit details
-
Copy full SHA for 9cc3f16 - Browse repository at this point
Copy the full SHA 9cc3f16View commit details -
Convert translatable strings part8
Search: `(.*?)QBT_TR\((.+?)\)QBT_TR(?:\[CONTEXT=.+?\])? Replace: `$1\${i18next.t('$2')} File glob: src/webui/www/private/**/*.html
Configuration menu - View commit details
-
Copy full SHA for 709bee0 - Browse repository at this point
Copy the full SHA 709bee0View commit details -
Convert translatable strings part9
Search: (["'])(\s*? )?QBT_TR\((.+?)\)QBT_TR(?:\[CONTEXT=.+?\])?((\\n)*?)\1 Replace: `$2${i18next.t($1$3$1)}$4` File glob: src/webui/www/private/**/*.html
Configuration menu - View commit details
-
Copy full SHA for ccb2cce - Browse repository at this point
Copy the full SHA ccb2cceView commit details -
Convert translatable strings part10
Search: (["'])QBT_TR\((.+?)\)QBT_TR(?:\[CONTEXT=.+?\])?\1 Replace: i18next.t($1$2$1) File glob: src/webui/www/private/**/*.js
Configuration menu - View commit details
-
Copy full SHA for c4d67dd - Browse repository at this point
Copy the full SHA c4d67ddView commit details -
Convert translatable strings part11
Search: (["'])(\s*? )?QBT_TR\((.+?)\)QBT_TR(?:\[CONTEXT=.+?\])?\1 Replace: `$2${i18next.t($1$3$1)}` File glob: src/webui/www/private/**/*.js
Configuration menu - View commit details
-
Copy full SHA for e16ca08 - Browse repository at this point
Copy the full SHA e16ca08View commit details -
Configuration menu - View commit details
-
Copy full SHA for 3179e29 - Browse repository at this point
Copy the full SHA 3179e29View commit details -
Configuration menu - View commit details
-
Copy full SHA for e205291 - Browse repository at this point
Copy the full SHA e205291View commit details