File tree Expand file tree Collapse file tree 2 files changed +26
-1
lines changed
Expand file tree Collapse file tree 2 files changed +26
-1
lines changed Original file line number Diff line number Diff line change 66
77All notable changes to this project will be documented in this file.
88
9+ ## 3.2.0 - UNRELEASED
10+ ### ℹ️ Notes
11+ The ` GettextBuilder.detectLocale ` method is deprecated and will be removed in the next major version.
12+ It is replaced with the ` detectLanguage ` method to make the method naming more consistent.
13+
14+ ### Added
15+ - TBD
16+ ### Fixed
17+ - TBD
18+ ### Changed
19+ - TBD
20+
921## 3.1.0 - 2024-05-07
1022
1123### Added
Original file line number Diff line number Diff line change @@ -33,8 +33,21 @@ class GettextBuilder {
3333 return this
3434 }
3535
36- /** Try to detect locale from context with `en` as fallback value */
36+ /**
37+ * Try to detect locale from context with `en` as fallback value
38+ * This only works within a Nextcloud page context.
39+ *
40+ * @deprecated use `detectLanguage` instead.
41+ */
3742 detectLocale ( ) : GettextBuilder {
43+ return this . detectLanguage ( )
44+ }
45+
46+ /**
47+ * Try to detect locale from context with `en` as fallback value.
48+ * This only works within a Nextcloud page context.
49+ */
50+ detectLanguage ( ) : GettextBuilder {
3851 return this . setLanguage ( getLanguage ( ) . replace ( '-' , '_' ) )
3952 }
4053
You can’t perform that action at this time.
0 commit comments