kopia lustrzana https://github.com/Tldraw/Tldraw
5ab93eef5f
This PR improves the language selection. Previously, we would miss the user's languages that included a locale. For example, if a user's languages were `['en-US', 'fr'], then they would get 'fr' because 'en-US' wasn't in our table—though 'en' was! We were already doing the splitting elsewhere but now we do it here, too. ### Release Note - Improves default language --------- Co-authored-by: Lu[ke] Wilson <l2wilson94@gmail.com> |
||
---|---|---|
.. | ||
useTranslation | ||
menuHelpers.ts | ||
useActions.tsx | ||
useActionsMenuSchema.tsx | ||
useAppEvents.ts | ||
useAppIsFocused.ts | ||
useAssetUrls.tsx | ||
useBreakpoint.tsx | ||
useCanRedo.ts | ||
useCanUndo.ts | ||
useClipboardEvents.ts | ||
useContextMenuSchema.tsx | ||
useCopyAs.ts | ||
useDialogsProvider.tsx | ||
useExportAs.ts | ||
useHasLinkShapeSelected.ts | ||
useHelpMenuSchema.tsx | ||
useHighDpiCanvas.ts | ||
useInsertMedia.ts | ||
useKeyboardShortcuts.ts | ||
useKeyboardShortcutsSchema.tsx | ||
useLocalStorageState.ts | ||
useMenuIsOpen.ts | ||
useMenuSchema.tsx | ||
useOnlyFlippableShape.ts | ||
usePreloadIcons.ts | ||
usePrint.ts | ||
useReadonly.ts | ||
useShowAutoSizeToggle.ts | ||
useToastsProvider.tsx | ||
useToolbarSchema.tsx | ||
useTools.tsx |