diff --git a/blueprintcompiler/language/values.py b/blueprintcompiler/language/values.py index ab5ad00..5f16fc4 100644 --- a/blueprintcompiler/language/values.py +++ b/blueprintcompiler/language/values.py @@ -519,14 +519,6 @@ class ArrayValue(AstNode): range=quoted_literal.range, ) ) - elif isinstance(value.child, Translated): - errors.append( - CompileError( - "Arrays can't contain translated strings", - range=value.child.range, - ) - ) - if len(errors) > 0: raise MultipleErrors(errors) diff --git a/tests/sample_errors/translated_string_array.blp b/tests/sample_errors/translated_string_array.blp deleted file mode 100644 index 451d900..0000000 --- a/tests/sample_errors/translated_string_array.blp +++ /dev/null @@ -1,7 +0,0 @@ -using Gtk 4.0; - -StringList { - strings: [ - _("Test") - ]; -} diff --git a/tests/sample_errors/translated_string_array.err b/tests/sample_errors/translated_string_array.err deleted file mode 100644 index 0beb7e5..0000000 --- a/tests/sample_errors/translated_string_array.err +++ /dev/null @@ -1 +0,0 @@ -5,5,9,Arrays can't contain translated strings \ No newline at end of file