diff options
author | Brandon Labuschagne <blabuschagne@gitlab.com> | 2019-05-07 08:40:58 +0200 |
---|---|---|
committer | Brandon Labuschagne <blabuschagne@gitlab.com> | 2019-05-21 11:27:11 +0200 |
commit | 29a47bfc27597c8fb5aa2cdeedd026a8af85f083 (patch) | |
tree | 2017b07f61c9a32f4619709ead45e8411fb38102 /app/assets/javascripts/search_autocomplete.js | |
parent | a5f810c9b18d63778a9cd5dc1d2c288e68b1497a (diff) | |
download | gitlab-ce-29a47bfc27597c8fb5aa2cdeedd026a8af85f083.tar.gz |
I18N JS files starting with sjs-i18n-s
This is one of many MRs opened in order to improve the overall
internationalisation of the GitLab codebase.
This commit only targets Vanilla JS files.
i18n documentation
https://docs.gitlab.com/ee/development/i18n/externalization.html
Diffstat (limited to 'app/assets/javascripts/search_autocomplete.js')
-rw-r--r-- | app/assets/javascripts/search_autocomplete.js | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/app/assets/javascripts/search_autocomplete.js b/app/assets/javascripts/search_autocomplete.js index 0a4583b5861..e5c3cebfb9a 100644 --- a/app/assets/javascripts/search_autocomplete.js +++ b/app/assets/javascripts/search_autocomplete.js @@ -2,7 +2,7 @@ import $ from 'jquery'; import { escape, throttle } from 'underscore'; -import { s__, sprintf } from '~/locale'; +import { s__, __, sprintf } from '~/locale'; import { getIdenticonBackgroundClass, getIdenticonTitle } from '~/helpers/avatar_helper'; import axios from './lib/utils/axios_utils'; import DropdownUtils from './filtered_search/dropdown_utils'; @@ -439,7 +439,7 @@ export class SearchAutocomplete { restoreMenu() { var html; - html = '<ul><li class="dropdown-menu-empty-item"><a>Loading...</a></li></ul>'; + html = `<ul><li class="dropdown-menu-empty-item"><a>${__('Loading...')}</a></li></ul>`; return this.dropdownContent.html(html); } |