Change log
All notable changes to LaravelLangCountry will be documented in this file.
Updates should follow the Keep a CHANGELOG principles.
[Unreleased]
[3.0.0]
Added
- Codebases is now 100% testable 🎉
- Codebase is now 100% typed 🎉
- Complete rewrite of the documentation.
- Enforcing 100% code coverage and 100% type coverage in CI.
- Using Pest for testing.
Fixed
Changed
- It now makes use of the
lang_path()instead of the old Laravelresources\langpath. - Moved to namespace
Stefro/LaravelLangCountryfromInvolvedGroup/LaravelLangCountry - Changed a nasty typo throughout the entire codebase
Prefered->preferred. - Middleware has been changed to use the user lang_country when available.
Removed
- Drop support for < PHP 8.1
- Drop Support for < Laravel 9
- Removed unused
lang-countriesin theallowedconfig list. - Removed Travis CI in favour of GitHub Actions.
[2.1.0] - 2020-05-05
Added
- LangCountryData.php : I've added 7 new properties to each file to distinguish between
language nameandcountry name. I have also added a_localoption so the app can use the localised translation. I have also include the country's official currency too.
country_nameAdded a default name of the country the app's primary demographic (e.g.Spain)country_name_localAdded a localized name of the country in the language of this file (e.g.España)currency_codeAdded the ISO-4217 code for this country's primary/official currency (e.g.USD)currency_symbolAdded a default symbol for this country's primary/official currency (e.g.$)currency_symbol_localAdded a localized symbol for this country's primary/official currency (e.g.US$)currency_nameAdded a default name for this country's primary/official currency (e.g.Dollar)currency_name_localAdded 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
localeoptions to theallowedarray. 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
5to thelang_countrycolumn. - 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 within 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."
Amended
- README.md
- CHANGELOG.md
Removed
- Nothing
Security
- Nothing