refactor: s/all-langs/i18n/g (#48258)

This commit is contained in:
Mrugesh Mohapatra
2022-10-26 22:38:27 +05:30
committed by GitHub
parent cf24131967
commit b393d88b9e
22 changed files with 24 additions and 28 deletions

View File

@@ -2,7 +2,7 @@ import { PassportConfigurator } from '@freecodecamp/loopback-component-passport'
import dedent from 'dedent';
import passport from 'passport';
import { availableLangs } from '../../../config/i18n/all-langs';
import { availableLangs } from '../../../config/i18n';
import { jwtSecret } from '../../../config/secrets';
import passportProviders from './passport-providers';
import { setAccessTokenToResponse } from './utils/getSetAccessToken';

View File

@@ -3,7 +3,7 @@ const { allowedOrigins } = require('../../../../config/cors-settings');
// homeLocation is being used as a fallback here. If the one provided by the
// client is invalid we default to this.
const { homeLocation } = require('../../../../config/env.json');
const { availableLangs } = require('../../../../config/i18n/all-langs');
const { availableLangs } = require('../../../../config/i18n');
function getReturnTo(encryptedParams, secret, _homeLocation = homeLocation) {
let params;