Skip to content
This repository was archived by the owner on Jun 18, 2019. It is now read-only.

Commit c3e3cf6

Browse files
authored
Merge pull request #509 from dimsav/release-910
release preparation for v9.1.0
2 parents b1aa31a + 067009d commit c3e3cf6

File tree

1 file changed

+85
-106
lines changed

1 file changed

+85
-106
lines changed

changelog.md

Lines changed: 85 additions & 106 deletions
Original file line numberDiff line numberDiff line change
@@ -1,173 +1,152 @@
1-
## Version History
2-
3-
### v. 9.0
4-
5-
- Added support for Laravel 5.6 #435
6-
7-
### v. 8.1
8-
9-
- Fixed error when fallback not available. #422
10-
- Fixed withTranslation query scope performance #417
11-
- Fixed fallback for country-based locales #417
12-
- Fixed empty attribute values #410
13-
14-
### v. 8.0
15-
16-
- Added support for Laravel 5.5 #394
17-
18-
### v. 7.3
19-
20-
- Added compatibility with custom db connections. #366
21-
22-
### v. 7.2.1
23-
24-
- Fixed delete events not fired for translations. #361
25-
26-
### v. 7.2
27-
28-
- Added replicateWithTranslations(). #346
29-
- Added orWhereTranslation and orWhereTranslationLike scopes. #338
30-
- Added support for laravel auto-discovery. #359
31-
- Added tag for publishing the config file. #360
32-
33-
### v. 7.1
34-
35-
- Added fallback per attribute. #348
36-
- Added getTranslationsArray() #347
37-
- Fixed filling 'property:locale' format was not validating the locale. #356
38-
39-
### v. 7
40-
1+
# Changelog
2+
3+
## v9.1.0
4+
- Do not call get translation with fallback locale and fallback enabled [#502](https://github.com/dimsav/laravel-translatable/pull/502)
5+
- Allow `translateOrDefault()` and `translateOrNew()` to default to user app locale [#500](https://github.com/dimsav/laravel-translatable/pull/500)
6+
- Change autoload translations behavior on runtime [#501](https://github.com/dimsav/laravel-translatable/pull/501)
7+
- Use fallback in `attributesToArray()` [#503](https://github.com/dimsav/laravel-translatable/pull/503)
8+
- Added `orderByTranslation()` scope [#504](https://github.com/dimsav/laravel-translatable/pull/504)
9+
- Example in doc for locale filtering in `whereTranslation()` scope [#487](https://github.com/dimsav/laravel-translatable/pull/487)
10+
- Fire saving event in every case [#457](https://github.com/dimsav/laravel-translatable/pull/457)
11+
- Allow to change default translation model namespace from config file [#508](https://github.com/dimsav/laravel-translatable/pull/508)
12+
13+
## v9.0.0
14+
- Added support for Laravel 5.6 [#435](https://github.com/dimsav/laravel-translatable/pull/435)
15+
16+
## v8.1.0
17+
- Fixed error when fallback not available. [#422](https://github.com/dimsav/laravel-translatable/pull/422)
18+
- Fixed withTranslation query scope performance [#417](https://github.com/dimsav/laravel-translatable/pull/417)
19+
- Fixed fallback for country-based locales [#417](https://github.com/dimsav/laravel-translatable/pull/417)
20+
- Fixed empty attribute values [#410](https://github.com/dimsav/laravel-translatable/pull/410)
21+
22+
## v8.0.0
23+
- Added support for Laravel 5.5 [#394](https://github.com/dimsav/laravel-translatable/pull/394)
24+
25+
## v7.3.0
26+
- Added compatibility with custom db connections. [#366](https://github.com/dimsav/laravel-translatable/pull/366)
27+
28+
## v7.2.1
29+
- Fixed delete events not fired for translations. [#361](https://github.com/dimsav/laravel-translatable/pull/361)
30+
31+
## v7.2.0
32+
- Added `replicateWithTranslations()`. [#346](https://github.com/dimsav/laravel-translatable/pull/346)
33+
- Added `orWhereTranslation()` and `orWhereTranslationLike()` scopes. [#338](https://github.com/dimsav/laravel-translatable/pull/338)
34+
- Added support for laravel auto-discovery. [#359](https://github.com/dimsav/laravel-translatable/pull/359)
35+
- Added tag for publishing the config file. [#360](https://github.com/dimsav/laravel-translatable/pull/360)
36+
37+
## v7.1.0
38+
- Added fallback per attribute. [#348](https://github.com/dimsav/laravel-translatable/pull/348)
39+
- Added `getTranslationsArray()` [#347](https://github.com/dimsav/laravel-translatable/pull/347)
40+
- Fixed filling 'property:locale' format was not validating the locale. [#356](https://github.com/dimsav/laravel-translatable/pull/356)
41+
42+
## v7.0.0
4143
- Added compatibility with Laravel v5.4.
42-
- Added default locale per model. #271
43-
44-
### v. 6.1
45-
46-
- Filling a model now supports using the 'property:locale' format in keys. #314 For example:
47-
```
48-
$country->fill(['name:en' => 'Belgium']);
49-
```
50-
- Added config to skip translations in toArray() for better performance when needed. #315
44+
- Added default locale per model. [#271](https://github.com/dimsav/laravel-translatable/pull/271)
5145

52-
### v. 6.0.1
46+
## v6.1.0
47+
- Filling a model now supports using the 'property:locale' format in keys. [#314](https://github.com/dimsav/laravel-translatable/pull/314) For example: `$country->fill(['name:en' => 'Belgium'])`
48+
- Added config to skip translations in `toArray()` for better performance when needed. [#315](https://github.com/dimsav/laravel-translatable/pull/315)
5349

54-
- Fix issue when trying to fetch a translation with a country based locale #264
55-
56-
### v. 6.0
50+
## v6.0.1
51+
- Fix issue when trying to fetch a translation with a country based locale [#264](https://github.com/dimsav/laravel-translatable/pull/264)
5752

53+
## v6.0.0
5854
- Translated fillable properties should only be defined in the translation model.
5955
- To update from version 5, move all the fillable properties belonging to a translation to the corresponding translation models.
60-
- Added deleteTranslations() method for conveniently deleting translations
61-
62-
### v. 5.6.1
56+
- Added `deleteTranslations()` method for conveniently deleting translations
6357

64-
- Added support for Lumen without Facades #259
65-
- Added support for Model accessors #257
58+
## v5.6.1
59+
- Added support for Lumen without Facades [#259](https://github.com/dimsav/laravel-translatable/pull/259)
60+
- Added support for Model accessors [#257](https://github.com/dimsav/laravel-translatable/pull/257)
6661
- Updated code style and added [styleci](https://styleci.io/) to enforce it
6762

68-
### v. 5.6
69-
70-
- Added scope notTranslatedIn() [#235](https://github.com/dimsav/laravel-translatable/pull/235)
71-
72-
### v. 5.5.1
73-
74-
- Fixed a bug in locale fallback on toArray()
63+
## v5.6.0
64+
- Added scope `notTranslatedIn()` [#235](https://github.com/dimsav/laravel-translatable/pull/235)
7565

76-
### v. 5.5
66+
## v5.5.1
67+
- Fixed a bug in locale fallback on `toArray()`
7768

69+
## v5.5.0
7870
- Added Laravel 5.2 support
7971
- Dropped Laravel 5.0 support
80-
- Added scope whereTranslationLike() [#183](https://github.com/dimsav/laravel-translatable/pull/183)
72+
- Added scope `whereTranslationLike()` [#183](https://github.com/dimsav/laravel-translatable/pull/183)
8173
- Fire 'updated' event when saving translations. [#190](https://github.com/dimsav/laravel-translatable/pull/190)
82-
- setAttribute() returns the model itself, which is now the default in eloquent. [#201](https://github.com/dimsav/laravel-translatable/issues/201)
83-
84-
### v. 5.4
74+
- `setAttribute()` returns the model itself, which is now the default in eloquent. [#201](https://github.com/dimsav/laravel-translatable/issues/201)
8575

76+
## v5.4
8677
- Added compatibility with custom primary key [#174](https://github.com/dimsav/laravel-translatable/issues/174)
8778

88-
### v. 5.3
89-
90-
- Added whereTranslation() scope [#168](https://github.com/dimsav/laravel-translatable/issues/168)
91-
92-
### v. 5.2
79+
## v5.3
80+
- Added `whereTranslation()` scope [#168](https://github.com/dimsav/laravel-translatable/issues/168)
9381

82+
## v5.2
9483
- Added option to override default locale [#158](https://github.com/dimsav/laravel-translatable/issues/158)
95-
- Added default value in translatedIn() scope [#148](https://github.com/dimsav/laravel-translatable/issues/148)
96-
- Added new scope [withTranslation()](https://github.com/dimsav/laravel-translatable/blob/384844af32928e41a09451aded8d5aa490d3c99f/src/Translatable/Translatable.php#L449-L458) (including [tests](https://github.com/dimsav/laravel-translatable/blob/c6c57e5d265a3b3ba2a882f073900fd8300ae5c6/tests/ScopesTest.php#L56-L74)) to decrease the number of mysql calls made.
84+
- Added default value in `translatedIn()` scope [#148](https://github.com/dimsav/laravel-translatable/issues/148)
85+
- Added new scope `withTranslation()]` to decrease the number of mysql calls made.
9786
- Added [documentation](https://github.com/dimsav/laravel-translatable/blob/0715f46613769570b65b97ac9ffec10f9bf06d8d/readme.md#available-scopes) about scopes.
9887

99-
### v. 5.1.2
100-
101-
- Fixed db in tests is dropped and recreated to make tests more stable (https://github.com/dimsav/laravel-translatable/commit/3cc29a21c27726a2d14463b3ec0d55c26487eb58)
88+
## v5.1.2
89+
- Fixed db in tests is dropped and recreated to make tests more stable
10290
- Fixed bug when using syntax `$country->{'name:en'}` and locale doesn't exist [#150](https://github.com/dimsav/laravel-translatable/issues/150)
10391
- Method isTranslationAttribute() is now public [#151](https://github.com/dimsav/laravel-translatable/issues/151)
10492

105-
### v. 5.1.1
106-
93+
## v5.1.1
10794
- Fixed compatibility with Lumen [#121](https://github.com/dimsav/laravel-translatable/issues/121)
10895
- Fixed making an attribute on a translatable model hidden does not hide it [#133](https://github.com/dimsav/laravel-translatable/issues/133)
10996

110-
### v. 5.1
111-
112-
- Added mutator/accessor translations using the format `$country->{'name:de'}` thanks to @barryvdh
97+
## v5.1.0
98+
- Added mutator/accessor translations using the format `$country->{'name:de'}` thanks to [@barryvdh](https://github.com/barryvdh)
11399
- Added documentation in readme file
114100

115-
### v. 5.0.1
116-
101+
## v5.0.1
117102
- Applied PSR-2 code style.
118103

119-
### v. 5.0
120-
104+
## v5.0.0
121105
- Laravel 5 ready
122106
- Added configuration option for returning fallback translations
123107

124-
### v. 4.5
125-
108+
## v4.5.0
126109
- Added scope to list translated attributes in the current locale.
127110
- Force fire "saved" event when the original model is not saved, but the translation is [#85](https://github.com/dimsav/laravel-translatable/issues/85)
128111

129-
### v. 4.4
130-
112+
## v4.4.0
131113
- Drops support for laravel 4.0.
132114
- Compatible with laravel 4.1 and laravel 4.2.
133115
- External config file.
134116
- Fallback issue fixed.
135117
- Added translated and translatedIn scopes.
136118
- Changed behavior: getting non existing translations with `getTranslation()` used to return objects, now `null` is returned.
137119
- Translated attributes now shown when converting `toArray()` or `toJson()`.
138-
- Fixed bug: fill() created empty translations even when translated attributes were not fillable.
120+
- Fixed bug: `fill()` created empty translations even when translated attributes were not fillable.
139121
- Added option to make translated attributes always fillable.
140122

141-
### v. 4.3
142-
123+
## v4.3.0
143124
- The `Translation` class suffix default can be overridden in the app config. See [7ecc0a75d](https://github.com/dimsav/laravel-translatable/commit/7ecc0a75dfcec58ebf694e0a7feb686294b49847)
144125
- The `app.fallback_locale` setting can be overridden in each model separately. See [#33](https://github.com/dimsav/laravel-translatable/pull/33)
145126
- Fallback translation is not returned if it is not defined.
146127

147-
### v. 4.2
148-
128+
## v4.2.0
149129
- Fallback locale now is taken from `app.fallback_locale` config key.
150130

151-
### v. 4.1.1
152-
131+
## v4.1.1
153132
- Fixed issue with saving translations, caused by the update of the laravel core.
154133

155-
### v. 4.1
156-
- Added [fallback](https://github.com/dimsav/laravel-translatable/issues/23) to default locale if translations is missing.
134+
## v4.1.0
135+
- Added fallback to default locale if translations is missing. [#23](https://github.com/dimsav/laravel-translatable/issues/23)
157136
- Added travis environment for laravel 4.2.
158137

159-
### v. 4.0
138+
## v4.0.0
160139
- Removed syntax `$model->en->name` because conflicts may happen if the model has a property named `en`. See [#18](https://github.com/dimsav/laravel-translatable/issues/18).
161140
- Added method `hasTranslation($locale)`. See [#19](https://github.com/dimsav/laravel-translatable/issues/19).
162141

163-
### v. 3.0
142+
## v3.0.0
164143
- Fixed bug [#7](https://github.com/dimsav/laravel-translatable/issues/7). Model's Translations were deleted when the model delete failed.
165144

166-
### v. 2.0
145+
## v2.0.0
167146
- Translatable is now a trait and can be used as add-on to your models.
168147
- 100% code coverage
169148

170-
### v. 1.0
149+
## v1.0.0
171150
- Initial version
172151
- Translatable is a class extending Eloquent
173152
- 96% code coverage

0 commit comments

Comments
 (0)