Tag: Script
-
Post Views: 22 Foreword: To undertake the sixth article of this series ‘Part 5: WordPress Multilingual Blog Translation Practical Records (Polylang) Plug-in, with pit guide)’, Part 6 focuses on the complete process of ‘translation of the full text of the stock Chinese blog into English’, and in the actual operation, we will continue to add Chinese articles—— These new articles…
-
Post Views: 25 Preface In the previous series of articles, I have completed multi-language adaptation of classification, and today I want to solve the most cumbersome part of the entire multilingualization: batch translation of 8060 Chinese labels. Manually add more than 8000 tags to translate one by one? This is obviously unrealistic. After clicking these 8,000 buttons, I am afraid…
-
Post Views: 19 1. UncaughtXError: Cannot use import statement outside a module (at statement.js:1:1). Reference: Refactoring: Improve the design of existing code (2nd edition). as shown in Figure 1 2. The code is implemented as follows, as shown in Figure 2 statement.html statement.js CreateStatementData.js 3. Reference:https://developer.mozilla.org/zh-CN/docs/Web/JavaScript/Guide/Modules. JavaScript module. You need to put type=”module” into the script tag to declare that…
-
Post Views: 59 1. When executing the command composer update –ignore-platform-reqs, an error is reported: script @php artisan package:discover –ansi handling the Post-autoload-dump event returned with error code 255. as shown in Figure 1 2. Why the option –ignore-platform-reqs is added when executing the composer update command. The reason is that when executing composer update, an error is reported: it…
-
Post Views: 15 1. When executing the command: composer install, an error is reported: script google\task\composer::cleanup handling the pre-autoload-dump event terminated with an exception. as shown in Figure 1 2. Check /vendor/google/apiclient/readme.md, clean up unused services, there are more than 200 Google API services. Chances are you won’t want them all. To avoid transferring these dependencies in your code, you…