Extract strings from blade templates
-
Hello
How can we extract strings from blade template files?
I.e. 404.blade.php contains the following code:
@extends('layouts.app') @section('content') @include('partials.page-header') @if (! have_posts())<x-alert type="warning"> {!! __('Sorry, but the page you are trying to view does not exist.', 'my-domain') !!} </x-alert> {!! get_search_form(false) !!} @endif @endsectionThe file is being picket up. I checked this here
As for your documentation, as long the string is in __(); it should work.
If I change the line to this, it works:<?php __('Sorry, but the page you are trying to view does not exist.', 'my-domain'); ?>Is there any way to tell Loco Translate to pickup strings like in my situation to?
Thanks,
Aldo
Viewing 6 replies - 1 through 6 (of 6 total)
Viewing 6 replies - 1 through 6 (of 6 total)
The topic ‘Extract strings from blade templates’ is closed to new replies.