We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 89bc5ef commit 2e1f7e8Copy full SHA for 2e1f7e8
app/Services/Template.php
@@ -9,21 +9,22 @@
9
class Template
10
{
11
protected static ?string $localeStub = null;
12
+
13
protected static ?string $pageStub = null;
14
15
public static function locale(string $code, array $locale): string
16
17
return Str::replaceFormat(static::localeStub(), [
- 'code' => $code,
18
+ 'code' => $code,
19
'locale' => $locale['name'],
- 'native' => Str::title($locale['native'])
20
+ 'native' => Str::title($locale['native']),
21
], '{{%s}}');
22
}
23
24
public static function page(array $locales): string
25
26
return Str::replaceFormat(static::pageStub(), [
- 'content' => implode(PHP_EOL . PHP_EOL, $locales)
27
+ 'content' => implode(PHP_EOL . PHP_EOL, $locales),
28
29
30
0 commit comments