-
Notifications
You must be signed in to change notification settings - Fork 919
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Add translations for open tabs in search autosuggest (#5065)
Task/Issue URL: https://app.asana.com/0/1200581511062568/1208400325419530/f ### Description Translations. ### Steps to test this PR - [x] Install from this branch. - [x] Open a few tabs. E.g `www.gardenersworld.com` - [x] Search for something that will match an open tab. E.g `garden` - [x] Notice the "Switch to Tab · " text before the URL in the suggestion. ### UI changes (Added Switch to Tab string) | Before | After | | ------ | ----- | |![switch_to_tab_before](https://github.com/user-attachments/assets/c2f2187d-7efe-4b2d-bc2f-31907c248726)|![switch_to_tab_after](https://github.com/user-attachments/assets/d0553336-b395-4576-a90d-58258d6f152b)| --------- Co-authored-by: Dax The Translator <[email protected]>
- Loading branch information
Showing
60 changed files
with
1,150 additions
and
775 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
30 changes: 30 additions & 0 deletions
30
app/src/main/java/com/duckduckgo/app/autocomplete/AutocompleteTabsFeature.kt
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,30 @@ | ||
/* | ||
* Copyright (c) 2024 DuckDuckGo | ||
* | ||
* Licensed under the Apache License, Version 2.0 (the "License"); | ||
* you may not use this file except in compliance with the License. | ||
* You may obtain a copy of the License at | ||
* | ||
* http://www.apache.org/licenses/LICENSE-2.0 | ||
* | ||
* Unless required by applicable law or agreed to in writing, software | ||
* distributed under the License is distributed on an "AS IS" BASIS, | ||
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. | ||
* See the License for the specific language governing permissions and | ||
* limitations under the License. | ||
*/ | ||
|
||
package com.duckduckgo.app.autocomplete | ||
|
||
import com.duckduckgo.anvil.annotations.ContributesRemoteFeature | ||
import com.duckduckgo.di.scopes.AppScope | ||
import com.duckduckgo.feature.toggles.api.Toggle | ||
|
||
@ContributesRemoteFeature( | ||
scope = AppScope::class, | ||
featureName = "autocompleteTabs", | ||
) | ||
interface AutocompleteTabsFeature { | ||
@Toggle.DefaultValue(false) | ||
fun self(): Toggle | ||
} |
Oops, something went wrong.