2
2
3
3
namespace Laravel \Spark \Configuration ;
4
4
5
- use Laravel \Spark \Spark ;
6
- use Laravel \Cashier \Cashier ;
7
5
use Illuminate \Support \Facades \Auth ;
6
+ use Laravel \Cashier \Cashier ;
8
7
use Laravel \Spark \Contracts \InitialFrontendState ;
8
+ use Laravel \Spark \Spark ;
9
9
10
10
trait ProvidesScriptVariables
11
11
{
@@ -17,7 +17,6 @@ trait ProvidesScriptVariables
17
17
public static function scriptVariables ()
18
18
{
19
19
return [
20
- 'translations ' => static ::getTranslations () + ['teams.team ' => trans ('teams.team ' ), 'teams.member ' => trans ('teams.member ' )],
21
20
'cardUpFront ' => Spark::needsCardUpFront (),
22
21
'collectsBillingAddress ' => Spark::collectsBillingAddress (),
23
22
'collectsEuropeanVat ' => Spark::collectsEuropeanVat (),
@@ -45,20 +44,4 @@ public static function scriptVariables()
45
44
'chargesTeamsPerMember ' => Spark::chargesTeamsPerMember (),
46
45
];
47
46
}
48
-
49
- /**
50
- * Get the translation keys from file.
51
- *
52
- * @return array
53
- */
54
- private static function getTranslations ()
55
- {
56
- $ translationFile = resource_path ('lang/ ' .app ()->getLocale ().'.json ' );
57
-
58
- if (! is_readable ($ translationFile )) {
59
- $ translationFile = resource_path ('lang/ ' .app ('translator ' )->getFallback ().'.json ' );
60
- }
61
-
62
- return json_decode (file_get_contents ($ translationFile ), true );
63
- }
64
47
}
0 commit comments