PageSourceSearch

https://symfonycasts.com/assets/controllers/admin/chapter_translation_subtitles_controller-usyNe11.js

js symfonycasts.com collected 2026-10-03 19:08:17 UTC 656 bytes, 19 lines download raw bytes

1import { Controller } from '@hotwired/stimulus';
2
3/* stimulusFetch: 'lazy' */
4export default class extends Controller {
5    static targets = ['esContent', 'errorMessage', 'script', 'errorArea', 'save'];
6
7    handleTranslateError(event) {
8        this.errorAreaTarget.classList.remove('d-none');
9
10        this.errorMessageTarget.innerHTML = event.detail.response.errorMessage;
11        this.scriptTarget.innerHTML = event.detail.response.script;
12        this.esContentTarget.value = event.detail.response.content;
13
14        this.esContentTarget.readOnly = true;
15        this.saveTarget.disabled = true;
16
17        this.errorAreaTarget.scrollIntoView();
18    }
19}

Line numbers count LF bytes from the start of the resource, as the search results do. Vendor segments are library code the classifier recognised; they are stored but not indexed. Bytes are shown as Latin1 characters, one per byte.