Skip to content

Commit

Permalink
Use kebab case for Fluent IDs
Browse files Browse the repository at this point in the history
  • Loading branch information
flodolo committed Jan 6, 2025
1 parent b3d182b commit 82745d3
Show file tree
Hide file tree
Showing 2 changed files with 10 additions and 8 deletions.
12 changes: 6 additions & 6 deletions translate/public/locale/en-US/translate.ftl
Original file line number Diff line number Diff line change
Expand Up @@ -682,15 +682,15 @@ search-FiltersPanel--apply-filters =
## Search Options Panel

search-SearchPanel--option-name-search_match_case = Match case
search-SearchPanel--option-name-search_match_whole_word = Match whole word
search-SearchPanel--option-name-search_identifiers = Search in string identifiers
search-SearchPanel--option-name-search_rejected_translations = Include rejected translations
search-SearchPanel--option-name-search_exclude_source_strings = Exclude source strings
search-SearchPanel--option-name-search-match-case = Match case
search-SearchPanel--option-name-search-match-whole-word = Match whole word
search-SearchPanel--option-name-search-identifiers = Search in string identifiers
search-SearchPanel--option-name-search-rejected-translations = Include rejected translations
search-SearchPanel--option-name-search-exclude-source-strings = Exclude source strings
search-SearchPanel--heading = SEARCH OPTIONS
search-SearchPanel--apply-searchOptions = APPLY SEARCH OPTIONS
search-SearchPanel--apply-search-options = APPLY SEARCH OPTIONS
.title = Apply Selected Search Options
## Time Range Filter
Expand Down
6 changes: 4 additions & 2 deletions translate/src/modules/search/components/SearchPanel.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -39,7 +39,9 @@ const SearchOption = ({
}}
>
<i className='fa'></i>
<Localized id={`search-SearchPanel--option-name-${slug}`}>
<Localized
id={`search-SearchPanel--option-name-${slug.replace(/_/g, '-')}`}
>
<span className='label'>{name}</span>
</Localized>
</li>
Expand Down Expand Up @@ -71,7 +73,7 @@ export function SearchPanelDialog({
))}
</ul>

<Localized id='search-SearchPanel--apply-searchOptions'>
<Localized id='search-SearchPanel--apply-search-options'>
<button
title='Apply Selected Search Options'
onClick={onApplyOptions}
Expand Down

0 comments on commit 82745d3

Please sign in to comment.