@extends('layout') @section('content')
{{ __('messages.example_with_value', ['name' => 'John']) }}
{{ trans_choice('messages.plural', 0, ['a' => 1]) }}
{{ trans_choice('messages.plural', 1, ['a' => 1]) }}
{{ trans_choice('messages.plural', 2, ['a' => 1]) }}
Using JSON: {{ __('Welcome to Laravel!') }}
Using JSON: {{ __('Hello :name', ['name' => 'Piotr']) }}
This is the content of the main page!
@endsection