Skip to content

how to pass a default translation if a phrase isnt existed in the en.json file #483

@abzokhattab

Description

@abzokhattab

Hello everybody ,,

How to pass a default translation if a phrase isn't existed in the en.json file

i cant find any option to add a default translation if the translation is not found ?

example

en.json ->
{
"Hi","Hola"
}

i18.__("hello") --> not there in the file 
{
"Hi","Hola",
"hello":"hello"
}

howover i want to set a defualt value if the translation is not found to be --->

{
"Hi","Hola",
"hello":"default_value"
}

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions