@@ -106,13 +106,13 @@ func (l *Locale) AddDomain(dom string) {
106
106
// Get uses a domain "default" to return the corresponding translation of a given string.
107
107
// Supports optional parameters (vars... interface{}) to be inserted on the formatted string using the fmt.Printf syntax.
108
108
func (l * Locale ) Get (str string , vars ... interface {}) string {
109
- return l .GetD ("default" , str , vars ... )
109
+ return l .GetD (GetDomain () , str , vars ... )
110
110
}
111
111
112
112
// GetN retrieves the (N)th plural form of translation for the given string in the "default" domain.
113
113
// Supports optional parameters (vars... interface{}) to be inserted on the formatted string using the fmt.Printf syntax.
114
114
func (l * Locale ) GetN (str , plural string , n int , vars ... interface {}) string {
115
- return l .GetND ("default" , str , plural , n , vars ... )
115
+ return l .GetND (GetDomain () , str , plural , n , vars ... )
116
116
}
117
117
118
118
// GetD returns the corresponding translation in the given domain for the given string.
@@ -143,13 +143,13 @@ func (l *Locale) GetND(dom, str, plural string, n int, vars ...interface{}) stri
143
143
// GetC uses a domain "default" to return the corresponding translation of the given string in the given context.
144
144
// Supports optional parameters (vars... interface{}) to be inserted on the formatted string using the fmt.Printf syntax.
145
145
func (l * Locale ) GetC (str , ctx string , vars ... interface {}) string {
146
- return l .GetDC ("default" , str , ctx , vars ... )
146
+ return l .GetDC (GetDomain () , str , ctx , vars ... )
147
147
}
148
148
149
149
// GetNC retrieves the (N)th plural form of translation for the given string in the given context in the "default" domain.
150
150
// Supports optional parameters (vars... interface{}) to be inserted on the formatted string using the fmt.Printf syntax.
151
151
func (l * Locale ) GetNC (str , plural string , n int , ctx string , vars ... interface {}) string {
152
- return l .GetNDC ("default" , str , plural , n , ctx , vars ... )
152
+ return l .GetNDC (GetDomain () , str , plural , n , ctx , vars ... )
153
153
}
154
154
155
155
// GetDC returns the corresponding translation in the given domain for the given string in the given context.
0 commit comments