• Home
  • Features
  • Pricing
  • Docs
  • Announcements
  • Sign In

teableio / teable / 10308829359

08 Aug 2024 08:10PM UTC coverage: 17.046%. Remained the same
10308829359

Pull #804

github

web-flow
Merge 4c2420c1b into b457d2e5e
Pull Request #804: Chore/french translation

1388 of 2856 branches covered (48.6%)

0 of 2 new or added lines in 2 files covered. (0.0%)

14105 of 82746 relevant lines covered (17.05%)

1.69 hits per line

Source File
Press 'n' to go to next uncovered line, 'b' for previous

0.0
/apps/nextjs-app/src/middleware.ts
1
import type { NextRequest } from 'next/server';
×
2
import { NextResponse } from 'next/server';
×
3
import { getLocaleDetection } from './lib/i18n/getLocale';
×
4

×
5
export function middleware(request: NextRequest) {
×
6
  const locale = getLocaleDetection({
×
7
    req: request,
×
8
    i18n: {
×
9
      defaultLocale: 'en',
×
NEW
10
      locales: ['en', 'de', 'zh', 'fr'],
×
11
    },
×
12
  });
×
13

×
14
  const response = NextResponse.next();
×
15
  response.headers.set('X-Server-Locale', locale);
×
16
  return response;
×
17
}
×
18

×
19
export const config = {
×
20
  /*
×
21
   * Match all request paths except for the ones starting with:
×
22
   * - api (API routes)
×
23
   * - _next/static (static files)
×
24
   * - _next/image (image optimization files)
×
25
   * - favicon.ico (favicon file)
×
26
   * - socket (Ws)
×
27
   */
×
28
  matcher: '/((?!api|_next/static|_next/image|favicon.ico|socket).*)',
×
29
};
×
STATUS · Troubleshooting · Open an Issue · Sales · Support · CAREERS · ENTERPRISE · START FREE · SCHEDULE DEMO
ANNOUNCEMENTS · TWITTER · TOS & SLA · Supported CI Services · What's a CI service? · Automated Testing

© 2025 Coveralls, Inc