weareinreach / InReach

Should not have unused variables JS-0128
Bug risk
5 days ago7 months old
'onDemand' is assigned a value but never used
 57	}
 58}
 59
 60const onDemand = new I18nextKeysOnDemand({ 61	translationGetter: onDemandFetcher,
 62	debounceDelay: 50,
 63})
'httpBackend' is assigned a value but never used
 64
 65// const crowdinBackend = new CrowdinOtaBackend(undefined, )
 66const apiPath = '/api/i18n/load?lng={{lng}}&ns={{ns}}'
 67const httpBackend = new HttpBackend(null, { 68	loadPath: getUrl(apiPath), //typeof window !== 'undefined' ? apiPath : `http://localhost:3000${apiPath}`,
 69	allowMultiLoading: true,
 70})
'lng' is defined but never used
130	interpolation: {
131		skipOnVariables: false,
132		alwaysFormat: true,
133		format: (value, format, lng, edit) => {134			switch (format) {
135				case 'lowercase': {
136					if (typeof value === 'string') return value.toLowerCase()
'edit' is defined but never used
130	interpolation: {
131		skipOnVariables: false,
132		alwaysFormat: true,
133		format: (value, format, lng, edit) => {134			switch (format) {
135				case 'lowercase': {
136					if (typeof value === 'string') return value.toLowerCase()