-
Notifications
You must be signed in to change notification settings - Fork 1.9k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge remote-tracking branch 'origin/main' into internationalization-…
…japanese * origin/main: (32 commits) i18n settings improvements (#2184) 1.58 Double the footer on the list members flatlist Fix links in profiles (#2178) Patch bad migration, sanitize bad value (#2179) Hide the mobile reply control if outside the threadgate (#2177) Revise FeedSourceCard load state to allow deletion for failures (#2172) Handle failed pinned feed fetches when rendering list of pinned feeds (#2173) Don't validate embeds when traversing cache (#2174) dismiss keyboard when threadgate settings are opened (#2161) Clarify MyList filter intent (#2167) Additional reductions in request traffic (#2169) Fix scroll on native (#2170) Fix scroll on profile lists/feeds (#2168) Reduce calls to getFeedGenerator and getFeed (#2166) Bump ios and android build numbers Fix mock-server init Add "Who can reply" controls [WIP] (#1954) Bump ios build Fix empty state width (#2157) ...
- Loading branch information
Showing
75 changed files
with
9,170 additions
and
793 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
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
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
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
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
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
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
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
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
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
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
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
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
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
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,12 @@ | ||
import {test, expect} from '@jest/globals' | ||
|
||
import {sanitizeAppLanguageSetting} from '#/locale/helpers' | ||
import {AppLanguage} from '#/locale/languages' | ||
|
||
test('sanitizeAppLanguageSetting', () => { | ||
expect(sanitizeAppLanguageSetting('en')).toBe(AppLanguage.en) | ||
expect(sanitizeAppLanguageSetting('hi')).toBe(AppLanguage.hi) | ||
expect(sanitizeAppLanguageSetting('foo')).toBe(AppLanguage.en) | ||
expect(sanitizeAppLanguageSetting('en,fr')).toBe(AppLanguage.en) | ||
expect(sanitizeAppLanguageSetting('fr,en')).toBe(AppLanguage.en) | ||
}) |
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
Oops, something went wrong.