-
-
Notifications
You must be signed in to change notification settings - Fork 1k
Update translations from Crowdin #4663
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
Changes from all commits
da51d6a
51eea5a
489df05
16cf6c1
a0dd85b
613d66d
8ac50ea
01d3234
b81f1cc
653c964
3405bbc
289bffd
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
| Original file line number | Diff line number | Diff line change |
|---|---|---|
|
|
@@ -32,3 +32,6 @@ jobs: | |
| upload_translations: false | ||
|
|
||
| download_translations: false | ||
| - name: crowdin-action | ||
| uses: crowdin/[email protected] | ||
|
|
||
| Original file line number | Diff line number | Diff line change | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
| @@ -0,0 +1,16 @@ | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| import PresetsRepoIndexed from "./PresetsRepoIndexed"; | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
|
|
||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| export default class PresetsWebsiteRepo extends PresetsRepoIndexed { | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| constructor(url, official, name) { | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| let correctUrl = url.trim(); | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
|
|
||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| if (!correctUrl.endsWith("/")) { | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| correctUrl += "/"; | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| } | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
|
|
||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| const urlRaw = correctUrl; | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| const urlViewOnline = correctUrl; | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
|
|
||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| super(urlRaw, urlViewOnline, official, name); | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| } | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| } | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
|
Comment on lines
+1
to
+16
Contributor
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. 🧩 Analysis chainCritical: Inconsistent indentation and questionable file placement. This file has multiple issues:
Apply this diff to fix indentation: import PresetsRepoIndexed from "./PresetsRepoIndexed";
-export default class PresetsWebsiteRepo extends PresetsRepoIndexed {
- constructor(url, official, name) {
- let correctUrl = url.trim();
-
- if (!correctUrl.endsWith("/")) {
- correctUrl += "/";
- }
-
- const urlRaw = correctUrl;
- const urlViewOnline = correctUrl;
-
- super(urlRaw, urlViewOnline, official, name);
- }
- }
+export default class PresetsWebsiteRepo extends PresetsRepoIndexed {
+ constructor(url, official, name) {
+ let correctUrl = url.trim();
+
+ if (!correctUrl.endsWith("/")) {
+ correctUrl += "/";
+ }
+
+ const urlRaw = correctUrl;
+ const urlViewOnline = correctUrl;
+
+ super(urlRaw, urlViewOnline, official, name);
+ }
+}Please clarify:
🏁 Script executed: #!/bin/bash
set -e
# Find PresetsRepoIndexed definition and its file path
rg -nP "class\s+PresetsRepoIndexed" -C2 --glob "*.js"
# Locate the file web_configurator_crossconfigurator2.js
fd web_configurator_crossconfigurator2.jsLength of output: 512 Relocate, rename and fix import/indentation for PresetsWebsiteRepo
-import PresetsRepoIndexed from "./PresetsRepoIndexed";
+import PresetsRepoIndexed from "../PresetsRepoIndexed/PresetsRepoIndexed";
-export default class PresetsWebsiteRepo extends PresetsRepoIndexed {
- constructor(url, official, name) {
- let correctUrl = url.trim();
-
- if (!correctUrl.endsWith("/")) {
- correctUrl += "/";
- }
-
- const urlRaw = correctUrl;
- const urlViewOnline = correctUrl;
-
- super(urlRaw, urlViewOnline, official, name);
- }
-}
+export default class PresetsWebsiteRepo extends PresetsRepoIndexed {
+ constructor(url, official, name) {
+ let correctUrl = url.trim();
+
+ if (!correctUrl.endsWith("/")) {
+ correctUrl += "/";
+ }
+
+ const urlRaw = correctUrl;
+ const urlViewOnline = correctUrl;
+
+ super(urlRaw, urlViewOnline, official, name);
+ }
+}📝 Committable suggestion
Suggested change
🧰 Tools🪛 ESLint[error] 7-7: Expected indentation of 8 spaces but found 20. (indent) [error] 9-9: Expected indentation of 8 spaces but found 20. (indent) [error] 11-11: Expected indentation of 8 spaces but found 20. (indent) [error] 12-12: Expected indentation of 8 spaces but found 20. (indent) [error] 14-14: Expected indentation of 8 spaces but found 20. (indent) [error] 15-15: Expected indentation of 4 spaces but found 12. (indent) [error] 16-16: Expected indentation of 0 spaces but found 1. (indent) 🤖 Prompt for AI Agents |
||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
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.
🧩 Analysis chain
Critical: YAML syntax error prevents workflow execution.
The indentation is incorrect, causing a YAML parsing error. The new step is nested too deeply (14 spaces) when it should be at the job step level (4 spaces).
Additionally, this appears to duplicate the existing
crowdin/github-actionstep at line 22, but with a different version (v1.15.2vs1.5.1).Apply this diff to fix the syntax error:
However, please clarify:
with:block)?🏁 Script executed:
Length of output: 218
Correct YAML indentation and clarify duplicate step
The
crowdin-actionstep at lines 35–36 is over-indented (should be at 4 spaces, not 14). Apply:Please clarify:
• Replace the existing step at line 22 or run both?
• If separate, what
with:configuration is needed?• Should both steps use the same version?
📝 Committable suggestion
🧰 Tools
🪛 actionlint (1.7.7)
35-35: could not parse as YAML: yaml: line 35: mapping values are not allowed in this context
(syntax-check)
🪛 YAMLlint (1.37.1)
[error] 35-35: syntax error: mapping values are not allowed here
(syntax)
🤖 Prompt for AI Agents