-
Notifications
You must be signed in to change notification settings - Fork 0
/
config.php
91 lines (89 loc) · 2.71 KB
/
config.php
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
<?php
/**
* karbon plugin for Craft CMS 3.x
*
* Brings the power of date / datetime handling from Carbon to Twig, hopefully helping to answer the age old question of: what (date)-time is it?
*
* @link https://github.com/kbergha
* @copyright Copyright (c) 2019 Knut Erik Berg-Hansen
*/
/**
* karbon config.php
*
* This file exists only as a template for the karbon settings.
* It does nothing on its own.
*
* Don't edit this file, instead copy it to 'craft/config' as 'karbon.php'
* and make your changes there to override default settings.
*
* Once copied to 'craft/config', this file will be multi-environment aware as
* well, so you can have different settings groups for each environment, just as
* you do for 'general.php'
*
* One set of configuration per locale you want to use.
* If a locale is not defined below, the 'default' config is used.
*
* Use IETF locale codes, the same as is used in Craft, as array keys.
*
* 'default' is required.
*
* Too see supported formats, take look at:
* https://momentjs.com/docs/#/displaying/format/
*
*/
return [
'dateConfiguration' => [
'default' => [
'timeZone' => Craft::$app->getTimeZone(),
'date' => [
'fallback' => 'L',
'oneDay' => 'dddd LL',
'multiDaySeparator' => '-',
'multiDaySameMonth' => [
'from' => 'D.',
'to' => 'LL'
],
'multiDayDifferentMonth' => [
'from' => 'D. MMMM',
'to' => 'LL'
],
'multiDayDifferentYear' => [
'from' => 'LL',
'to' => 'LL'
]
],
'time' => [
'prefix' => '',
'postfix' => '',
'spanSeparator' => ' - ',
'format' => 'HH:mm'
]
],
'nb-NO' => [
'timeZone' => 'Europe/Oslo',
'date' => [
'fallback' => 'L',
'oneDay' => 'dddd LL',
'multiDaySeparator' => '-',
'multiDaySameMonth' => [
'from' => 'D.',
'to' => 'LL'
],
'multiDayDifferentMonth' => [
'from' => 'D. MMMM',
'to' => 'LL'
],
'multiDayDifferentYear' => [
'from' => 'LL',
'to' => 'LL'
]
],
'time' => [
'prefix' => 'kl. ',
'postfix' => '',
'spanSeparator' => ' - ',
'format' => 'HH:mm'
]
]
]
];