Browse Source

translations

tags/1.0
Maxime Renou 2 years ago
parent
commit
f22b7b12ba
  1. 5
      resources/translations/en/messages.php
  2. 5
      resources/translations/fr/messages.php
  3. 2
      resources/views/connect/components/button.blade.php
  4. 4
      src/ConnectServiceProvider.php

5
resources/translations/en/messages.php

@ -0,0 +1,5 @@
<?php
return [
'button' => 'Sign in with Bluesquare Connect'
];

5
resources/translations/fr/messages.php

@ -0,0 +1,5 @@
<?php
return [
'button' => 'Connexion avec Bluesquare Connect'
];

2
resources/views/connect/components/button.blade.php

@ -26,7 +26,7 @@
</g>
</g>
</svg>
<span>{{ __('Sign in with Bluesquare Connect') }}</span>
<span>{{ trans('connect::messages.button') }}</span>
</a>
<style>
.bconnect-button {

4
src/ConnectServiceProvider.php

@ -42,6 +42,10 @@ class ConnectServiceProvider extends ServiceProvider
__DIR__ . '/../config/bconnect.php' => config_path('bconnect.php')
]);
// Translations
$this->loadTranslationsFrom(__DIR__.'/../resources/translations', 'connect');
// Views
$this->loadViewsFrom(__DIR__.'/../resources/views/connect', 'connect');

Loading…
Cancel
Save