Hi, I installed an lang extension which it's code is "zh-hant", I wrote an extension and want to support "zh-hant" for my project. So I create a YAML file in my extension's locale folder, but occurred an error. How can I resolve it, or how do I do with my extension to add the multiple languages? Thanks a lot!
PS: I alse added a en.yml
in my extension's locale folder, when I toggled to 'English', it work well.
Information below is the Error stacks:
Notice: Undefined index: data in /Library/WebServer/Documents/bbs/vendor/flarum/core/src/Frontend/Content/CorePayload.php on line 74
Fatal error: Uncaught Laminas\HttpHandlerRunner\Exception\EmitterException: Output has been emitted previously; cannot emit response in /Library/WebServer/Documents/bbs/vendor/laminas/laminas-httphandlerrunner/src/Exception/EmitterException.php:24 Stack trace: #0
/Library/WebServer/Documents/bbs/vendor/laminas/laminas-httphandlerrunner/src/Emitter/SapiEmitterTrait.php(40): Laminas\HttpHandlerRunner\Exception\EmitterException::forOutputSent() #1
/Library/WebServer/Documents/bbs/vendor/laminas/laminas-httphandlerrunner/src/Emitter/SapiEmitter.php(27): Laminas\HttpHandlerRunner\Emitter\SapiEmitter->assertNoPreviousOutput() #2
/Library/WebServer/Documents/bbs/vendor/laminas/laminas-httphandlerrunner/src/RequestHandlerRunner.php(98): Laminas\HttpHandlerRunner\Emitter\SapiEmitter->emit(Object(Laminas\Diactoros\Response\HtmlResponse)) #3
/Library/WebServer/Documents/bbs/vendor/flarum/core/src/Http/Server.php(44): Laminas\HttpHandlerRunner\RequestHandlerRunner->run() #4
/Library/WebServer/Documents/bbs/public/index.php(26): Flaru in /Library/WebServer/Documents/bbs/vendor/laminas/laminas-httphandlerrunner/src/Exception/EmitterException.php on line 24