DataTable Javascript dynamic language

Is there some way to get more efficient than next for auto translate a DataTable, depending on a variable value?

CODE:

@{
    string language;  
    switch (ViewData["language"].ToString())
    {
        case "en":
            language="dataTables.english.lang";
            break;
        case "ch":
            language="dataTables.chinese.lang";
            break;
        default:
            language="dataTables.spanish.lang";
            break;
    }
} 
$('#myTableId').DataTable({
    "language": {
        "url": "@language"
    }
});


Source: stackoverflow-javascript