1
|
|
|
<?php |
2
|
|
|
|
3
|
|
|
namespace ChinLeung\VerboseLocalization\Concerns; |
4
|
|
|
|
5
|
|
|
trait HasBaltoSlavicVerboseMethods |
6
|
|
|
{ |
7
|
|
|
/** |
8
|
|
|
* Retrieve the translation in another locale. |
9
|
|
|
* |
10
|
|
|
* @param string $locale |
11
|
|
|
* @return mixed |
12
|
|
|
*/ |
13
|
|
|
abstract public function getTranslationIn(string $locale); |
14
|
|
|
|
15
|
|
|
/** |
16
|
|
|
* Function to retrieve the translation in Belarusian. |
17
|
|
|
* |
18
|
|
|
* @return mixed |
19
|
|
|
*/ |
20
|
|
|
public function inBelarusian() |
21
|
|
|
{ |
22
|
|
|
return $this->getTranslationIn('be'); |
23
|
|
|
} |
24
|
|
|
|
25
|
|
|
/** |
26
|
|
|
* Function to retrieve the translation in Bosnian. |
27
|
|
|
* |
28
|
|
|
* @return mixed |
29
|
|
|
*/ |
30
|
|
|
public function inBosnian() |
31
|
|
|
{ |
32
|
|
|
return $this->getTranslationIn('bs'); |
33
|
|
|
} |
34
|
|
|
|
35
|
|
|
/** |
36
|
|
|
* Function to retrieve the translation in Bulgarian. |
37
|
|
|
* |
38
|
|
|
* @return mixed |
39
|
|
|
*/ |
40
|
|
|
public function inBulgarian() |
41
|
|
|
{ |
42
|
|
|
return $this->getTranslationIn('bg'); |
43
|
|
|
} |
44
|
|
|
|
45
|
|
|
/** |
46
|
|
|
* Function to retrieve the translation in Croatian. |
47
|
|
|
* |
48
|
|
|
* @return mixed |
49
|
|
|
*/ |
50
|
|
|
public function inCroatian() |
51
|
|
|
{ |
52
|
|
|
return $this->getTranslationIn('hr'); |
53
|
|
|
} |
54
|
|
|
|
55
|
|
|
/** |
56
|
|
|
* Function to retrieve the translation in Czech. |
57
|
|
|
* |
58
|
|
|
* @return mixed |
59
|
|
|
*/ |
60
|
|
|
public function inCzech() |
61
|
|
|
{ |
62
|
|
|
return $this->getTranslationIn('cs'); |
63
|
|
|
} |
64
|
|
|
|
65
|
|
|
/** |
66
|
|
|
* Function to retrieve the translation in Latvian. |
67
|
|
|
* |
68
|
|
|
* @return mixed |
69
|
|
|
*/ |
70
|
|
|
public function inLatvian() |
71
|
|
|
{ |
72
|
|
|
return $this->getTranslationIn('lv'); |
73
|
|
|
} |
74
|
|
|
|
75
|
|
|
/** |
76
|
|
|
* Function to retrieve the translation in Lithuanian. |
77
|
|
|
* |
78
|
|
|
* @return mixed |
79
|
|
|
*/ |
80
|
|
|
public function inLithuanian() |
81
|
|
|
{ |
82
|
|
|
return $this->getTranslationIn('lt'); |
83
|
|
|
} |
84
|
|
|
|
85
|
|
|
/** |
86
|
|
|
* Function to retrieve the translation in Macedonian. |
87
|
|
|
* |
88
|
|
|
* @return mixed |
89
|
|
|
*/ |
90
|
|
|
public function inMacedonian() |
91
|
|
|
{ |
92
|
|
|
return $this->getTranslationIn('mk'); |
93
|
|
|
} |
94
|
|
|
|
95
|
|
|
/** |
96
|
|
|
* Function to retrieve the translation in Polish. |
97
|
|
|
* |
98
|
|
|
* @return mixed |
99
|
|
|
*/ |
100
|
|
|
public function inPolish() : string |
101
|
|
|
{ |
102
|
|
|
return $this->getTranslationIn('pl'); |
103
|
|
|
} |
104
|
|
|
|
105
|
|
|
/** |
106
|
|
|
* Function to retrieve the translation in Russian. |
107
|
|
|
* |
108
|
|
|
* @return mixed |
109
|
|
|
*/ |
110
|
|
|
public function inRussian() : string |
111
|
|
|
{ |
112
|
|
|
return $this->getTranslationIn('ru'); |
113
|
|
|
} |
114
|
|
|
|
115
|
|
|
/** |
116
|
|
|
* Function to retrieve the translation in Serbian. |
117
|
|
|
* |
118
|
|
|
* @return mixed |
119
|
|
|
*/ |
120
|
|
|
public function inSerbian() : string |
121
|
|
|
{ |
122
|
|
|
return $this->getTranslationIn('sr'); |
123
|
|
|
} |
124
|
|
|
|
125
|
|
|
/** |
126
|
|
|
* Function to retrieve the translation in Slovak. |
127
|
|
|
* |
128
|
|
|
* @return mixed |
129
|
|
|
*/ |
130
|
|
|
public function inSlovak() : string |
131
|
|
|
{ |
132
|
|
|
return $this->getTranslationIn('sk'); |
133
|
|
|
} |
134
|
|
|
|
135
|
|
|
/** |
136
|
|
|
* Function to retrieve the translation in Slovenian. |
137
|
|
|
* |
138
|
|
|
* @return mixed |
139
|
|
|
*/ |
140
|
|
|
public function inSlovenian() : string |
141
|
|
|
{ |
142
|
|
|
return $this->getTranslationIn('sl'); |
143
|
|
|
} |
144
|
|
|
|
145
|
|
|
/** |
146
|
|
|
* Function to retrieve the translation in Ukrainian. |
147
|
|
|
* |
148
|
|
|
* @return mixed |
149
|
|
|
*/ |
150
|
|
|
public function inUkrainian() : string |
151
|
|
|
{ |
152
|
|
|
return $this->getTranslationIn('uk'); |
153
|
|
|
} |
154
|
|
|
} |
155
|
|
|
|