This might be a PHP version issue. Make sure your webserver PHP version is supported by Flarum, and that the command line version and webserver versions are the same.
The reason the homepage can't load doesn't seem related to translations. It's a 500 error while preparing the page data. The error is not visible on the page, but it should be logged to the log file at <flarum>/storage/logs
and is also visible when visiting https://forum.freehost4u.org/api directly since debug mode is on:
ParseError: syntax error, unexpected '|', expecting variable (T_VARIABLE) in /home/freehos4/forum.freehost4u.org/flarum/vendor/symfony/filesystem/Filesystem.php:87
Stack trace:
#0 /home/freehos4/forum.freehost4u.org/flarum/vendor/composer/ClassLoader.php(322): Composer\Autoload\includeFile('/home/freehos4/...')
#1 [internal function]: Composer\Autoload\ClassLoader->loadClass('Symfony\\Compone...')
#2 /home/freehos4/forum.freehost4u.org/flarum/vendor/symfony/config/ResourceCheckerConfigCache.php(122): spl_autoload_call('Symfony\\Compone...')
#3 /home/freehos4/forum.freehost4u.org/flarum/vendor/symfony/translation/Translator.php(333): Symfony\Component\Config\ResourceCheckerConfigCache->write('<?php\n\nuse Symf...', Array)
#4 /home/freehos4/forum.freehost4u.org/flarum/vendor/symfony/translation/Translator.php(298): Symfony\Component\Translation\Translator->dumpCatalogue('en', Object(Symfony\Component\Config\ConfigCache))
#5 /home/freehos4/forum.freehost4u.org/flarum/vendor/symfony/config/ConfigCacheFactory.php(42): Symfony\Component\Translation\Translator->Symfony\Component\Translation\{closure}(Object(Symfony\Component\Config\ConfigCache))
#6 /home/freehos4/forum.freehost4u.org/flarum/vendor/symfony/translation/Translator.php(299): Symfony\Component\Config\ConfigCacheFactory->cache('/home/freehos4/...', Object(Closure))
#7 /home/freehos4/forum.freehost4u.org/flarum/vendor/symfony/translation/Translator.php(270): Symfony\Component\Translation\Translator->initializeCacheCatalogue('en')
#8 /home/freehos4/forum.freehost4u.org/flarum/vendor/symfony/translation/Translator.php(241): Symfony\Component\Translation\Translator->loadCatalogue('en')
#9 /home/freehos4/forum.freehost4u.org/flarum/vendor/flarum/core/src/Locale/Translator.php(44): Symfony\Component\Translation\Translator->getCatalogue('en')
#10 /home/freehos4/forum.freehost4u.org/flarum/vendor/symfony/translation/Translator.php(207): Flarum\Locale\Translator->getCatalogue('en')
#11 /home/freehos4/forum.freehost4u.org/flarum/vendor/flarum/core/src/Api/Serializer/GroupSerializer.php(65): Symfony\Component\Translation\Translator->trans('core.group.admi...')
#12 /home/freehos4/forum.freehost4u.org/flarum/vendor/flarum/core/src/Api/Serializer/GroupSerializer.php(51): Flarum\Api\Serializer\GroupSerializer->translateGroupName('Admin')
#13 /home/freehos4/forum.freehost4u.org/flarum/vendor/flarum/core/src/Api/Serializer/AbstractSerializer.php(88): Flarum\Api\Serializer\GroupSerializer->getDefaultAttributes(Object(Flarum\Group\Group))
#14 /home/freehos4/forum.freehost4u.org/flarum/vendor/tobscure/json-api/src/Resource.php(169): Flarum\Api\Serializer\AbstractSerializer->getAttributes(Object(Flarum\Group\Group), NULL)
#15 /home/freehos4/forum.freehost4u.org/flarum/vendor/tobscure/json-api/src/Resource.php(75): Tobscure\JsonApi\Resource->getAttributes()
#16 /home/freehos4/forum.freehost4u.org/flarum/vendor/tobscure/json-api/src/Document.php(187): Tobscure\JsonApi\Resource->toArray()
#17 [internal function]: Tobscure\JsonApi\Document->Tobscure\JsonApi\{closure}(Object(Tobscure\JsonApi\Resource))
#18 /home/freehos4/forum.freehost4u.org/flarum/vendor/tobscure/json-api/src/Document.php(186): array_map(Object(Closure), Array)
#19 /home/freehos4/forum.freehost4u.org/flarum/vendor/tobscure/json-api/src/Document.php(224): Tobscure\JsonApi\Document->toArray()
#20 /home/freehos4/forum.freehost4u.org/flarum/vendor/flarum/core/src/Api/JsonApiResponse.php(27): Tobscure\JsonApi\Document->jsonSerialize()
#21 /home/freehos4/forum.freehost4u.org/flarum/vendor/flarum/core/src/Api/Controller/AbstractSerializeController.php(134): Flarum\Api\JsonApiResponse->__construct(Object(Tobscure\JsonApi\Document))
#22 /home/freehos4/forum.freehost4u.org/flarum/vendor/flarum/core/src/Http/RouteHandlerFactory.php(41): Flarum\Api\Controller\AbstractSerializeController->handle(Object(Laminas\Diactoros\ServerRequest))
#23 /home/freehos4/forum.freehost4u.org/flarum/vendor/flarum/core/src/Http/Middleware/ExecuteRoute.php(27): Flarum\Http\RouteHandlerFactory->Flarum\Http\{closure}(Object(Laminas\Diactoros\ServerRequest), Array)
#24 /home/freehos4/forum.freehost4u.org/flarum/vendor/laminas/laminas-stratigility/src/Next.php(51): Flarum\Http\Middleware\ExecuteRoute->process(Object(Laminas\Diactoros\ServerRequest), Object(Closure))
#25 /home/freehos4/forum.freehost4u.org/flarum/vendor/flarum/core/src/Api/Middleware/ThrottleApi.php(33): Laminas\Stratigility\Next->handle(Object(Laminas\Diactoros\ServerRequest))
#26 /home/freehos4/forum.freehost4u.org/flarum/vendor/laminas/laminas-stratigility/src/Next.php(51): Flarum\Api\Middleware\ThrottleApi->process(Object(Laminas\Diactoros\ServerRequest), Object(Laminas\Stratigility\Next))
#27 /home/freehos4/forum.freehost4u.org/flarum/vendor/flarum/core/src/Http/Middleware/CheckCsrfToken.php(36): Laminas\Stratigility\Next->handle(Object(Laminas\Diactoros\ServerRequest))
#28 /home/freehos4/forum.freehost4u.org/flarum/vendor/laminas/laminas-stratigility/src/Next.php(51): Flarum\Http\Middleware\CheckCsrfToken->process(Object(Laminas\Diactoros\ServerRequest), Object(Laminas\Stratigility\Next))
#29 /home/freehos4/forum.freehost4u.org/flarum/vendor/flarum/core/src/Http/Middleware/ResolveRoute.php(67): Laminas\Stratigility\Next->handle(Object(Laminas\Diactoros\ServerRequest))
#30 /home/freehos4/forum.freehost4u.org/flarum/vendor/laminas/laminas-stratigility/src/Next.php(51): Flarum\Http\Middleware\ResolveRoute->process(Object(Laminas\Diactoros\ServerRequest), Object(Laminas\Stratigility\Next))
#31 /home/freehos4/forum.freehost4u.org/flarum/vendor/flarum/core/src/Http/Middleware/SetLocale.php(51): Laminas\Stratigility\Next->handle(Object(Laminas\Diactoros\ServerRequest))
#32 /home/freehos4/forum.freehost4u.org/flarum/vendor/laminas/laminas-stratigility/src/Next.php(51): Flarum\Http\Middleware\SetLocale->process(Object(Laminas\Diactoros\ServerRequest), Object(Laminas\Stratigility\Next))
#33 /home/freehos4/forum.freehost4u.org/flarum/vendor/flarum/core/src/Http/Middleware/AuthenticateWithHeader.php(58): Laminas\Stratigility\Next->handle(Object(Laminas\Diactoros\ServerRequest))
#34 /home/freehos4/forum.freehost4u.org/flarum/vendor/laminas/laminas-stratigility/src/Next.php(51): Flarum\Http\Middleware\AuthenticateWithHeader->process(Object(Laminas\Diactoros\ServerRequest), Object(Laminas\Stratigility\Next))
#35 /home/freehos4/forum.freehost4u.org/flarum/vendor/flarum/core/src/Http/Middleware/AuthenticateWithSession.php(31): Laminas\Stratigility\Next->handle(Object(Laminas\Diactoros\ServerRequest))
#36 /home/freehos4/forum.freehost4u.org/flarum/vendor/laminas/laminas-stratigility/src/Next.php(51): Flarum\Http\Middleware\AuthenticateWithSession->process(Object(Laminas\Diactoros\ServerRequest), Object(Laminas\Stratigility\Next))
#37 /home/freehos4/forum.freehost4u.org/flarum/vendor/flarum/core/src/Http/Middleware/RememberFromCookie.php(52): Laminas\Stratigility\Next->handle(Object(Laminas\Diactoros\ServerRequest))
#38 /home/freehos4/forum.freehost4u.org/flarum/vendor/laminas/laminas-stratigility/src/Next.php(51): Flarum\Http\Middleware\RememberFromCookie->process(Object(Laminas\Diactoros\ServerRequest), Object(Laminas\Stratigility\Next))
#39 /home/freehos4/forum.freehost4u.org/flarum/vendor/flarum/core/src/Http/Middleware/StartSession.php(61): Laminas\Stratigility\Next->handle(Object(Laminas\Diactoros\ServerRequest))
#40 /home/freehos4/forum.freehost4u.org/flarum/vendor/laminas/laminas-stratigility/src/Next.php(51): Flarum\Http\Middleware\StartSession->process(Object(Laminas\Diactoros\ServerRequest), Object(Laminas\Stratigility\Next))
#41 /home/freehos4/forum.freehost4u.org/flarum/vendor/flarum/core/src/Api/Middleware/FakeHttpMethods.php(29): Laminas\Stratigility\Next->handle(Object(Laminas\Diactoros\ServerRequest))
#42 /home/freehos4/forum.freehost4u.org/flarum/vendor/laminas/laminas-stratigility/src/Next.php(51): Flarum\Api\Middleware\FakeHttpMethods->process(Object(Laminas\Diactoros\ServerRequest), Object(Laminas\Stratigility\Next))
#43 /home/freehos4/forum.freehost4u.org/flarum/vendor/flarum/core/src/Http/Middleware/ParseJsonBody.php(28): Laminas\Stratigility\Next->handle(Object(Laminas\Diactoros\ServerRequest))
#44 /home/freehos4/forum.freehost4u.org/flarum/vendor/laminas/laminas-stratigility/src/Next.php(51): Flarum\Http\Middleware\ParseJsonBody->process(Object(Laminas\Diactoros\ServerRequest), Object(Laminas\Stratigility\Next))
#45 /home/freehos4/forum.freehost4u.org/flarum/vendor/flarum/core/src/Http/Middleware/HandleErrors.php(57): Laminas\Stratigility\Next->handle(Object(Laminas\Diactoros\ServerRequest))
#46 /home/freehos4/forum.freehost4u.org/flarum/vendor/laminas/laminas-stratigility/src/Next.php(51): Flarum\Http\Middleware\HandleErrors->process(Object(Laminas\Diactoros\ServerRequest), Object(Laminas\Stratigility\Next))
#47 /home/freehos4/forum.freehost4u.org/flarum/vendor/flarum/core/src/Http/Middleware/InjectActorReference.php(25): Laminas\Stratigility\Next->handle(Object(Laminas\Diactoros\ServerRequest))
#48 /home/freehos4/forum.freehost4u.org/flarum/vendor/laminas/laminas-stratigility/src/Next.php(51): Flarum\Http\Middleware\InjectActorReference->process(Object(Laminas\Diactoros\ServerRequest), Object(Laminas\Stratigility\Next))
#49 /home/freehos4/forum.freehost4u.org/flarum/vendor/laminas/laminas-stratigility/src/MiddlewarePipe.php(76): Laminas\Stratigility\Next->handle(Object(Laminas\Diactoros\ServerRequest))
#50 /home/freehos4/forum.freehost4u.org/flarum/vendor/middlewares/request-handler/src/RequestHandler.php(84): Laminas\Stratigility\MiddlewarePipe->process(Object(Laminas\Diactoros\ServerRequest), Object(Laminas\Stratigility\Next))
#51 /home/freehos4/forum.freehost4u.org/flarum/vendor/laminas/laminas-stratigility/src/Next.php(51): Middlewares\RequestHandler->process(Object(Laminas\Diactoros\ServerRequest), Object(Laminas\Stratigility\Next))
#52 /home/freehos4/forum.freehost4u.org/flarum/vendor/middlewares/base-path-router/src/BasePathRouter.php(101): Laminas\Stratigility\Next->handle(Object(Laminas\Diactoros\ServerRequest))
#53 /home/freehos4/forum.freehost4u.org/flarum/vendor/laminas/laminas-stratigility/src/Next.php(51): Middlewares\BasePathRouter->process(Object(Laminas\Diactoros\ServerRequest), Object(Laminas\Stratigility\Next))
#54 /home/freehos4/forum.freehost4u.org/flarum/vendor/laminas/laminas-stratigility/src/Middleware/OriginalMessages.php(36): Laminas\Stratigility\Next->handle(Object(Laminas\Diactoros\ServerRequest))
#55 /home/freehos4/forum.freehost4u.org/flarum/vendor/laminas/laminas-stratigility/src/Next.php(51): Laminas\Stratigility\Middleware\OriginalMessages->process(Object(Laminas\Diactoros\ServerRequest), Object(Laminas\Stratigility\Next))
#56 /home/freehos4/forum.freehost4u.org/flarum/vendor/middlewares/base-path/src/BasePath.php(73): Laminas\Stratigility\Next->handle(Object(Laminas\Diactoros\ServerRequest))
#57 /home/freehos4/forum.freehost4u.org/flarum/vendor/laminas/laminas-stratigility/src/Next.php(51): Middlewares\BasePath->process(Object(Laminas\Diactoros\ServerRequest), Object(Laminas\Stratigility\Next))
#58 /home/freehos4/forum.freehost4u.org/flarum/vendor/flarum/core/src/Http/Middleware/ProcessIp.php(24): Laminas\Stratigility\Next->handle(Object(Laminas\Diactoros\ServerRequest))
#59 /home/freehos4/forum.freehost4u.org/flarum/vendor/laminas/laminas-stratigility/src/Next.php(51): Flarum\Http\Middleware\ProcessIp->process(Object(Laminas\Diactoros\ServerRequest), Object(Laminas\Stratigility\Next))
#60 /home/freehos4/forum.freehost4u.org/flarum/vendor/laminas/laminas-stratigility/src/MiddlewarePipe.php(76): Laminas\Stratigility\Next->handle(Object(Laminas\Diactoros\ServerRequest))
#61 /home/freehos4/forum.freehost4u.org/flarum/vendor/laminas/laminas-stratigility/src/MiddlewarePipe.php(65): Laminas\Stratigility\MiddlewarePipe->process(Object(Laminas\Diactoros\ServerRequest), Object(Laminas\Stratigility\EmptyPipelineHandler))
#62 /home/freehos4/forum.freehost4u.org/flarum/vendor/laminas/laminas-httphandlerrunner/src/RequestHandlerRunner.php(96): Laminas\Stratigility\MiddlewarePipe->handle(Object(Laminas\Diactoros\ServerRequest))
#63 /home/freehos4/forum.freehost4u.org/flarum/vendor/flarum/core/src/Http/Server.php(44): Laminas\HttpHandlerRunner\RequestHandlerRunner->run()
#64 /home/freehos4/forum.freehost4u.org/flarum/public/index.php(26): Flarum\Http\Server->listen()
#65 {main}
This PHP error seems to both prevent the homepage from loading and since it happens inside of the translation loader that's also why translations are incomplete.
It seems like the Symfony Filesystem package in which the error happens has a new version that contains a union type in method parameter definition, which is only available from PHP 8. So maybe your command line version is PHP 8, which caused Composer to install this new version of the package, but your webserver version is still 7.x which doesn't support that syntax.
For reference, this is what line 87 of Filesystem.php
looks like on my PHP 8.0 install:
public function mkdir(string|iterable $dirs, int $mode = 0777)
I assume a different version of the package gets installed on PHP 7.3 and 7.4.