15 lines
803 B
TypeScript
15 lines
803 B
TypeScript
![]() |
import { ExpoConfig } from '@expo/config-types';
|
||
|
import { XcodeProject } from 'xcode';
|
||
|
import { ConfigPlugin } from '../Plugin.types';
|
||
|
declare type LocaleJson = Record<string, string>;
|
||
|
declare type ResolvedLocalesJson = Record<string, LocaleJson>;
|
||
|
declare type ExpoConfigLocales = NonNullable<ExpoConfig['locales']>;
|
||
|
export declare const withLocales: ConfigPlugin;
|
||
|
export declare function getLocales(config: Pick<ExpoConfig, 'locales'>): Record<string, string | LocaleJson> | null;
|
||
|
export declare function setLocalesAsync(config: Pick<ExpoConfig, 'locales'>, { projectRoot, project }: {
|
||
|
projectRoot: string;
|
||
|
project: XcodeProject;
|
||
|
}): Promise<XcodeProject>;
|
||
|
export declare function getResolvedLocalesAsync(projectRoot: string, input: ExpoConfigLocales): Promise<ResolvedLocalesJson>;
|
||
|
export {};
|