Empresas
Empregos
  • Sobre nós
  • Soluções
    • Publicação de vagas
      Publique sua vaga e receba candidatos qualificados em 48h.
    • Avaliações de candidatos
      Mais de 500 testes técnicos e psicológicos, mais anti-fraude.
    • Headhunting
      Busca executiva personalizada do início ao fim.
    • Folha de Pagamento + EOR
      Dispersão de folha e EOR em mais de 15 países da LATAM.
  • Preços
  • Empregos

0

104
Visualizações
Yup and i18n issue of not translating

I want Yup to pick the translations but it doesn't seem to be working. This is my code :

export const whenCheckAllocationOwner = {
  is: (modalType: ModalType, currentLegalForm: LegalForm) =>
    currentLegalForm !== EKLegalForm &&
    currentLegalForm !== FreelanceLegalForm &&
    modalType === 'owner',
  then: Yup.string().when(
    ['modalType', 'currentLegalForm', 'isBeneficialOwner'],
    whenAllocationGbR,
  ),
  otherwise: Yup.string().test(
    'test_allocation',
    i18n.t(

        'Ensure that there are no less than 0.00% or no more than 100% or a maximum of two decimals',
    ),
    (value) => checkLocaleValidAllocation(value, true),
  ),
};

The value of the translation is in German, but it's not being picked.

about 4 years ago · Juan Pablo Isaza
Responde à pergunta
Encontrar trabalhos remotos

Descubra a nova forma de encontrar um emprego!

melhores empregos
Principais categorias de trabalho
Empresas
Postar vaga Preços Comercial
Jurídico
Termos e Condições Política de privacidade
© 2026 PeakU Inc. All Rights Reserved.
Andres GPT
Recomende algumas ofertas para mim
Preciso de ajuda