@react-aria/i18n
Version:
Spectrum UI components in React
32 lines (29 loc) • 1.61 kB
text/typescript
/*
* Copyright 2020 Adobe. All rights reserved.
* This file is licensed to you 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 REPRESENTATIONS
* OF ANY KIND, either express or implied. See the License for the specific language
* governing permissions and limitations under the License.
*/
export {I18nProvider, useLocale, isRTL} from 'react-aria/I18nProvider';
export {useMessageFormatter} from './useMessageFormatter';
export {
useLocalizedStringFormatter,
useLocalizedStringDictionary
} from 'react-aria/useLocalizedStringFormatter';
export {useListFormatter} from 'react-aria/useListFormatter';
export {useDateFormatter} from 'react-aria/useDateFormatter';
export {useNumberFormatter} from 'react-aria/useNumberFormatter';
export {useCollator} from 'react-aria/useCollator';
export {useFilter} from 'react-aria/useFilter';
export type {FormatMessage} from './useMessageFormatter';
export type {I18nProviderProps, Locale} from 'react-aria/I18nProvider';
export type {DateFormatterOptions} from 'react-aria/useDateFormatter';
export type {Filter} from 'react-aria/useFilter';
export type {LocalizedStringFormatter} from '@internationalized/string';
export type {LocalizedStrings} from '@internationalized/message';
export type {DateFormatter} from '@internationalized/date';