add translation to docs
This commit is contained in:
1 parent
99044f33ba
commit
75a9713ed2
5 files changed
+209
-22
No files matched your search
+17
-1
@@ -566,6 +566,22 @@ array:2 [
|
||||
0 => "The expire datetime must be a Jalali datetime before 1397/02/16 12:10:00."
|
||||
]
|
||||
]
|
||||
</pre>
|
||||
|
||||
|
||||
<h2 id="traslation">Traslation</h2>
|
||||
<p>You can show weekdays, months , messages in the languages available in Verta To view supported languages, go to the folder <a href="https://github.com/hekmatinasser/verta/tree/master/src/Lang">langs</a></p>
|
||||
<p>To set locale, use the following command</p>
|
||||
<pre>
|
||||
Verta::setLocale('fa');
|
||||
</pre>
|
||||
<p>To get current locale, use the following command</p>
|
||||
<pre>
|
||||
Verta::getLocale(); // fa
|
||||
</pre>
|
||||
<p>To reset locale to fa, use the following command</p>
|
||||
<pre>
|
||||
Verta::resetLocale();
|
||||
</pre>
|
||||
</article>
|
||||
</div>
|
||||
@@ -574,7 +590,7 @@ array:2 [
|
||||
|
||||
<footer id="footer">
|
||||
<div style="text-align: center;">
|
||||
2020 ©
|
||||
2017-2021 ©
|
||||
</div>
|
||||
</footer>
|
||||
</body>
|
||||
|
||||
Reference in new issue
Block a user