UNPKG

1.15 kBSource Map (JSON)View Raw
1{"version":3,"file":"Locales.js","sourceRoot":"","sources":["../../src/ios/Locales.ts"],"names":[],"mappings":";;AACA,4DAAqD;AAErD,SAAgB,UAAU,CAAC,MAAkB;IAC3C,IAAI,MAAM,CAAC,OAAO,EAAE;QAClB,OAAO,IAAI,CAAC;KACb;SAAM;QACL,OAAO,KAAK,CAAC;KACd;AACH,CAAC;AAND,gCAMC;AAED,SAAgB,eAAe,CAAC,MAAkB,EAAE,WAAmB;IACrE,IAAI,OAAO,GAAG,UAAU,CAAC,MAAM,CAAC,CAAC;IACjC,IAAI,CAAC,OAAO,EAAE;QACZ,OAAO;KACR;IAED,iCAAa,CACX,SAAS,EACT,uEAAuE,EACvE,mJAAmJ,CACpJ,CAAC;AACJ,CAAC;AAXD,0CAWC","sourcesContent":["import { ExpoConfig } from '../Config.types';\nimport { addWarningIOS } from '../WarningAggregator';\n\nexport function getLocales(config: ExpoConfig) {\n if (config.locales) {\n return true;\n } else {\n return false;\n }\n}\n\nexport function setLocalesAsync(config: ExpoConfig, projectRoot: string) {\n let locales = getLocales(config);\n if (!locales) {\n return;\n }\n\n addWarningIOS(\n 'locales',\n 'You will need to customize the locales manually in InfoPlist.strings.',\n 'https://developer.apple.com/library/archive/documentation/General/Reference/InfoPlistKeyReference/Articles/AboutInformationPropertyListFiles.html'\n );\n}\n"]}
\No newline at end of file