Skip to content

Commit 83c2c29

Browse files
ktranDevtools-frontend LUCI CQ
authored andcommitted
Update strings in empty states to capitalize API names
This CL updates API names in empty states to use the recommended capitalization according to our ux writing guide. Bug: 325443331 Change-Id: I0865885f0eda2281ffcaf0ac197d3b5451000d66 Reviewed-on: https://chromium-review.googlesource.com/c/devtools/devtools-frontend/+/6284846 Commit-Queue: Simon Zünd <[email protected]> Auto-Submit: Kim-Anh Tran <[email protected]> Reviewed-by: Simon Zünd <[email protected]>
1 parent 68ea0b6 commit 83c2c29

File tree

3 files changed

+5
-5
lines changed

3 files changed

+5
-5
lines changed

front_end/panels/application/StorageBucketsTreeElement.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -37,7 +37,7 @@ const UIStrings = {
3737
* deleted independently. https://developer.chrome.com/docs/web-platform/storage-buckets.
3838
*/
3939
storageBucketsDescription:
40-
'On this page you can view and delete storage buckets, and their associated `storage APIs`.'
40+
'On this page you can view and delete storage buckets, and their associated `Storage APIs`.'
4141
};
4242
const str_ = i18n.i18n.registerUIStrings('panels/application/StorageBucketsTreeElement.ts', UIStrings);
4343
export const i18nString = i18n.i18n.getLocalizedString.bind(undefined, str_);

front_end/panels/web_audio/WebAudioView.test.ts

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -26,9 +26,9 @@ describeWithEnvironment('WebAudioView', () => {
2626
const view = new WebAudioView.WebAudioView();
2727
assert.exists(view.contentElement.querySelector('.empty-state'));
2828
assert.deepEqual(
29-
view.contentElement.querySelector('.empty-state-header')?.textContent, 'No web audio API usage detected');
29+
view.contentElement.querySelector('.empty-state-header')?.textContent, 'No Web Audio API usage detected');
3030
assert.deepEqual(
3131
view.contentElement.querySelector('.empty-state-description > span')?.textContent,
32-
'Open a page that uses web audio API to start monitoring.');
32+
'Open a page that uses Web Audio API to start monitoring.');
3333
});
3434
});

front_end/panels/web_audio/WebAudioView.ts

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -23,11 +23,11 @@ const UIStrings = {
2323
*@description Text in Web Audio View if there is nothing to show.
2424
* Web Audio API is an API for controlling audio on the web.
2525
*/
26-
noWebAudio: 'No web audio API usage detected',
26+
noWebAudio: 'No Web Audio API usage detected',
2727
/**
2828
*@description Text in Web Audio View
2929
*/
30-
openAPageThatUsesWebAudioApiTo: 'Open a page that uses web audio API to start monitoring.',
30+
openAPageThatUsesWebAudioApiTo: 'Open a page that uses Web Audio API to start monitoring.',
3131
};
3232
const str_ = i18n.i18n.registerUIStrings('panels/web_audio/WebAudioView.ts', UIStrings);
3333
const i18nString = i18n.i18n.getLocalizedString.bind(undefined, str_);

0 commit comments

Comments
 (0)