Skip to content

Releases: stefro/laravel-lang-country

2.8.1

26 Jul 12:04
9ae25a3
Compare
Choose a tag to compare

Full Changelog: 2.8...2.8.1

Add setting to fallback based on the locale

26 Jul 09:41
136fcef
Compare
Choose a tag to compare

What's Changed

  • Add fallback based on current locale in LangCountry by @stefro in #34

Full Changelog: 2.7...2.8

Update to Laravel 10

26 Apr 13:28
5316d28
Compare
Choose a tag to compare
2.7

Upgrade to Laravel 10

add currentLangCountry()

14 Apr 11:45
922c9e4
Compare
Choose a tag to compare

Laravel 9 compatible

08 Feb 19:17
Compare
Choose a tag to compare

Added ca-ES

05 Mar 11:42
Compare
Choose a tag to compare

Added ca-ES

Overriding allowed countries and fallback

01 Feb 13:40
f7b570f
Compare
Choose a tag to compare

There may be some edge cases where you would like to override the allowed countries and fallback. This is now possible when you're using the PreferedLanguage class.

Support PHP 8.0

10 Dec 15:41
Compare
Choose a tag to compare
2.3

drop support of PHP 7.3

Laravel 8 compatible

10 Sep 12:08
Compare
Choose a tag to compare

local country names and currencies added

05 May 17:18
886bb86
Compare
Choose a tag to compare

Great additions thanks to @jayenne Jayenne Montana!

Added

  • LangCountryData.php : I've added 7 new properties to each file to distinguish between language name and country name. I have also added a _local option so the app can use the localised translation. I have also include the country's official currency too.
  • country_name Added a default name of the country the app's primary demographic (e.g. Spain)
  • country_name_local Added a localized name of the country in the language of this file (e.g. España)
  • currency_code Added the ISO-4217 code for this country's primary/official currency (e.g. USD)
  • currency_symbol Added a default symbol for this country's primary/official currency (e.g. $)
  • currency_symbol_local Added a localized symbol for this country's primary/official currency (e.g. US$)
  • currency_name Added a default name for this country's primary/official currency (e.g. Dollar)
  • currency_name_local Added a localized name for this country's primary/official currency (e.g. US Dollar)
  • laravel-lang-country.php : Included the full ISO-3166 list of countries as new locale options to the allowed array. This will make it simpler to enable/disable locales as they become available.
  • 2018_04_29_074240_add_lang_country_column_to_users_table.php : Added a char limit of 5 to the lang_country column.
  • langCountry.php : Added methods to return the data files new parameters.
  • Added countryName()
  • Added countryNameLocal()
  • Added currencyCode()
  • Added currencySymbol()
  • Added currencySymbolLocal()
  • Added currencyName()
  • Added currencyNameLocal()
  • LangCountryTest.php : Added new tests for each of the new methods and to reflect the changes to the data files.
  • lang-country-overrides/nl.NL.json : included new parameters to reflect those made witihn LangCountryData/...json

Deprecated

  • Nothing

Fixed

  • phpunit.xml.dist : Fixed PhpUnit Warning "- Element 'log', attribute 'charset': The attribute 'charset' is not allowed."
  • phpunit.xml.dist : Fixed PhpUnit Warning "- Element 'log', attribute 'yui': The attribute 'yui' is not allowed."
  • phpunit.xml.dist : Fixed PhpUnit Warning "- Element 'log', attribute 'highlight': The attribute 'highlight' is not allowed."