Translating Arduino-IDE using Theia's nls API (#545)

This commit is contained in:
Mark Sujew
2021-10-18 09:59:33 +02:00
committed by GitHub
parent 61262c23ac
commit 11b75bd610
76 changed files with 1445 additions and 499 deletions

View File

@@ -1,3 +1,4 @@
import { nls } from '@theia/core/lib/browser/nls';
import * as React from 'react';
export class SearchBar extends React.Component<SearchBar.Props> {
@@ -12,7 +13,10 @@ export class SearchBar extends React.Component<SearchBar.Props> {
ref={this.setRef}
className={`theia-input ${SearchBar.Styles.SEARCH_BAR_CLASS}`}
type="text"
placeholder="Filter your search..."
placeholder={nls.localize(
'arduino/component/filterSearch',
'Filter your search...'
)}
size={1}
value={this.props.filterText}
onChange={this.handleFilterTextChange}