Skip to content

If I set the language is 'ko-KR', there will have two request 'ko' and 'ko-KR' #61

@Rem486

Description

@Rem486

🐛 Bug Report

A clear and concise description of what the bug is.

To Reproduce

A codesandbox example or similar
or at least steps to reproduce the behavior:

import i18n from 'i18next';
import Backend from 'i18next-http-backend';

i18n
  .use(Backend)
  .init({
    fallbackLng: 'ko-KR',
    preload: ['ko-KR'],
    backend: {
      loadPath: `http://localhost/api/translation-resource/{{lng}}`,
    },
    interpolation: {
      escapeValue: false, // not needed for react as it escapes by default
    },
  });

image

Expected behavior

A clear and concise description of what you expected to happen.

only one request, or Is this normal ?

Your Environment

  • runtime version: i.e. chrome
  • i18next version: i.e. 20.1.0
  • os: Windows
  • any other relevant information

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions