diff --git a/vlib/v/checker/checker.v b/vlib/v/checker/checker.v index 92ad1f4453..5e5070abdd 100644 --- a/vlib/v/checker/checker.v +++ b/vlib/v/checker/checker.v @@ -296,7 +296,8 @@ fn (mut c Checker) file_has_main_fn(file &ast.File) bool { } fn (mut c Checker) check_valid_snake_case(name string, identifier string, pos token.Position) { - if !c.pref.is_vweb && name.len > 0 && (name[0] == `_` || name.contains('._')) { + if !c.pref.is_vweb && !c.pref.translated && name.len > 0 + && (name[0] == `_` || name.contains('._')) { c.error('$identifier `$name` cannot start with `_`', pos) } if !c.pref.experimental && !c.pref.translated && util.contains_capital(name) {