// @flow

import I18nJs from 'i18n-js';

I18nJs.locale = 'en'; // a locale from your available translations
export const getLanguages = () => Promise.resolve('en');
export default I18nJs;

// @flow

import I18nJs from 'i18n-js';

I18nJs.locale = 'en'; // a locale from your available translations
export const getLanguages = () => Promise.resolve(['en']);
export default I18nJs;

Fix test - getLanguages is a Promise<Array<string>>
Fix test - getLanguages is a Promise<Array<string>>