0
0

Fuel\Core\PhpErrorException [ Fatal Error ]: The configured locale(s) "en_US" can not be found on your system.

Last updated at Posted at 2024-09-18

Fuel\Core\PhpErrorException [ Fatal Error ]:
The configured locale(s) "en_US" can not be found on your system.

fuelPHPを設置する段階でもうローカルで開くことさえできないエラーが出されます。
(vscode, xampp使用)

http://localhost/[プロジェクトフォルダ名]/public/」 
を開こうとしたらエラーが出ます。

対処法です。

fuel/app/config/config.php をひらきます。

そこから「language」を検索します。

/**
 *  The default language.
 */

// 'language' => 'en',

/**
 *  Fallback language when file isn't available for default language.
 */

// 'language_fallback' => 'en',

/**
 *  PHP set_locale() setting. Use null to not set.
 */

// 'locale' => 'en_US',

ここからわかるようにデフォルトが「en_US」になっていることがわかります。

ではここの下に明示しましょう。

'locale' => '',

この明示によってエラーがなくなります。

ちなみに以下の対処法も試してみましたが、ダメでした。

'language' => 'ja',
'locale' => 'ja_JP.UTF-8',

もし、「'locale' => '',」が効かない方はこの方法も試してみてください。

参考:https://fuelphp.com/forums/discussion/6945/error-related-to-i18n/p1

0
0
0

Register as a new user and use Qiita more conveniently

  1. You get articles that match your needs
  2. You can efficiently read back useful information
  3. You can use dark theme
What you can do with signing up
0
0