diff --git a/main.tscn b/main.tscn index ae3c7c8..e1bef42 100644 --- a/main.tscn +++ b/main.tscn @@ -20,7 +20,7 @@ offset_top = 258.0 offset_right = 949.0 offset_bottom = 326.0 theme_override_font_sizes/font_size = 49 -text = "Press enter or B to continue" +text = "TEXT_CONTINUE" horizontal_alignment = 1 vertical_alignment = 1 diff --git a/project.godot b/project.godot index 3538ed5..c863d8c 100644 --- a/project.godot +++ b/project.godot @@ -61,6 +61,10 @@ schar={ ] } +[internationalization] + +locale/translations=PackedStringArray("res://text.en.translation", "res://text.es.translation", "res://text.ja.translation") + [physics] 2d/default_gravity_vector=Vector2(0, 0) diff --git a/text.csv b/text.csv new file mode 100644 index 0000000..88cec0f --- /dev/null +++ b/text.csv @@ -0,0 +1,3 @@ +,en,es,ja +TEXT_CONTINUE,Press enter or B to continue,Presiona Intro o B para continuar,Enter または B を押して続行します +KEY_PUSH,Push Me!,Aprétame!,押す diff --git a/text.csv.import b/text.csv.import new file mode 100644 index 0000000..d940376 --- /dev/null +++ b/text.csv.import @@ -0,0 +1,17 @@ +[remap] + +importer="csv_translation" +type="Translation" +uid="uid://dt1vbfhc5vuwh" + +[deps] + +files=["res://text.en.translation", "res://text.es.translation", "res://text.ja.translation"] + +source_file="res://text.csv" +dest_files=["res://text.en.translation", "res://text.es.translation", "res://text.ja.translation"] + +[params] + +compress=true +delimiter=0 diff --git a/text.en.translation b/text.en.translation new file mode 100644 index 0000000..54ac9f7 Binary files /dev/null and b/text.en.translation differ diff --git a/text.es.translation b/text.es.translation new file mode 100644 index 0000000..efa2cb3 Binary files /dev/null and b/text.es.translation differ diff --git a/text.ja.translation b/text.ja.translation new file mode 100644 index 0000000..60e4814 Binary files /dev/null and b/text.ja.translation differ