Function outside await : return error Can not use keyword await Help me please...
I18n.defaultLocale = 'tr'
await AsyncStorage.getItem('locale').then((value) => {
I18n.locale = value
}).done();
I18n.fallbacks = true;
I18n.translations = { en, tr };
const currentLocale = I18n.currentLocale();
export function strings(name, params = {}) {
return I18n.t(name, params);
};
export default I18n;