An open API service indexing awesome lists of open source software.

https://github.com/theoriginalbit/multilingualsearching

This reference project implements the usage of localizedStandardRange to solve the issues highlighted in "Build Multilingual-ready apps" from WWD24
https://github.com/theoriginalbit/multilingualsearching

ios locale-aware multilingual-ready reference-implementation search user-experience wwdc24

Last synced: 7 months ago
JSON representation

This reference project implements the usage of localizedStandardRange to solve the issues highlighted in "Build Multilingual-ready apps" from WWD24

Awesome Lists containing this project

README

          

# Multilingual Searching

This reference project implements the usage of `localizedStandardRange(of:)` to solve the issues highlighted in [Build Multilingual-ready apps](https://developer.apple.com/videos/play/wwdc2024/10185) from WWD24. Specifically respecting local-specific conventions for spelling.

The project highlights the matched range of the search term in red, demonstrating the solution to another issue highlighted in the same WWDC session. For the best explanation watch 2 minutes of this [direct time link](https://developer.apple.com/videos/play/wwdc2024/10185?time=395). This app used red to be a more extreme and noticable difference, but in a real app you would likely use shades of grey.

The following screenshot shows the search in this app being local-aware (note: Å matches A) and using colour to highlight why the item matched the search term.

![A screenshot of the app showing a list of items that match the search term. Each item has the search term highlighted in red to show why it matched the search term.](.github/SearchResults.png)