Skip to content

Commit

Permalink
Update documentation
Browse files Browse the repository at this point in the history
  • Loading branch information
hamidgh83 committed Sep 30, 2023
1 parent 03189cd commit 9d8bbf7
Showing 1 changed file with 15 additions and 1 deletion.
16 changes: 15 additions & 1 deletion source/how_to_use.rst
Original file line number Diff line number Diff line change
Expand Up @@ -158,6 +158,20 @@ The ``language()`` allows you to get a Language model containing valuable inform
<?php
$locale = $ip->language()->locale();
$locale = $ip->language()->locale;
// Returns the locale of the recognied language, e.g., 'en_US'
.. table::
:width: 100%
:align: center

+------------+---------------------------------------------------------------------------------------------------------------------------------------------------------------------+
| Attributes | Descriptions |
+============+=====================================================================================================================================================================+
| locale | The locale corresponding to the language recognized in the country |
+------------+---------------------------------------------------------------------------------------------------------------------------------------------------------------------+
| all | An array containing all languages spoken within the specified country. |
+------------+---------------------------------------------------------------------------------------------------------------------------------------------------------------------+
| officials | An array listing the official languages spoken in the specified country. |
+------------+---------------------------------------------------------------------------------------------------------------------------------------------------------------------+

0 comments on commit 9d8bbf7

Please sign in to comment.