-
Notifications
You must be signed in to change notification settings - Fork 2.3k
Bug 1118946 - Use new App.name API for gaia grid l10n #28510
Bug 1118946 - Use new App.name API for gaia grid l10n #28510
Conversation
ac26ddb
to
b2350de
Compare
Zibi Braniecki (zbraniecki) started tests. Results |
b2350de
to
5550f5d
Compare
Zibi Braniecki (zbraniecki) started tests. Results |
return this.app.getLocalizedValue('short_name', userLang, ep).then( | ||
n => n, | ||
this.app.getLocalizedValue.bind(this.app, 'name', userLang, ep)).then( | ||
function(name) { |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Let's not mix styles, just use an arrow function here, .then(name => {
5550f5d
to
4ac3cf6
Compare
Zibi Braniecki (zbraniecki) started tests. Results |
4ac3cf6
to
92e5e39
Compare
Zibi Braniecki (zbraniecki) started tests. Results |
92e5e39
to
20b9fca
Compare
Zibi Braniecki (zbraniecki) started tests. Results |
20b9fca
to
d95e738
Compare
Zibi Braniecki (zbraniecki) started tests. Results |
d95e738
to
1b4d2d2
Compare
Zibi Braniecki (zbraniecki) started tests. Results |
1b4d2d2
to
1a89463
Compare
Zibi Braniecki (zbraniecki) started tests. Results |
1a89463
to
9dd5727
Compare
Zibi Braniecki (zbraniecki) started tests. Results |
9dd5727
to
1dfcddf
Compare
Zibi Braniecki (zbraniecki) started tests. Results |
Kevin Grandon (KevinGrandon) started tests. Results |
var ep = this.entryPoint || undefined; | ||
|
||
return this.app.getLocalizedValue('short_name', userLang, ep).then( | ||
n => n, |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Can we also apply the pseudolocale logic here in case we get back the English value of short_name
?
1dfcddf
to
9537451
Compare
Zibi Braniecki (zbraniecki) started tests. Results |
@@ -529,7 +529,15 @@ | |||
|
|||
var nameEl = document.createElement('span'); | |||
nameEl.className = 'title'; | |||
nameEl.textContent = this.name; | |||
|
|||
if (this.asyncName) { |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Can this call this.updateTitle after assigning the element to this.element
?
9537451
to
c70a699
Compare
Bug 1118946 - Use new App.name API for gaia grid l10n. r=kgrandon
https://bugzilla.mozilla.org/show_bug.cgi?id=1118946