locale test

This commit is contained in:
Page Asgardius 2024-04-10 18:04:28 -07:00
parent a3bcdbc7b8
commit a8e73a4c70
7 changed files with 25 additions and 1 deletions

View file

@ -20,7 +20,7 @@ offset_top = 258.0
offset_right = 949.0 offset_right = 949.0
offset_bottom = 326.0 offset_bottom = 326.0
theme_override_font_sizes/font_size = 49 theme_override_font_sizes/font_size = 49
text = "Press enter or B to continue" text = "TEXT_CONTINUE"
horizontal_alignment = 1 horizontal_alignment = 1
vertical_alignment = 1 vertical_alignment = 1

View file

@ -61,6 +61,10 @@ schar={
] ]
} }
[internationalization]
locale/translations=PackedStringArray("res://text.en.translation", "res://text.es.translation", "res://text.ja.translation")
[physics] [physics]
2d/default_gravity_vector=Vector2(0, 0) 2d/default_gravity_vector=Vector2(0, 0)

3
text.csv Normal file
View file

@ -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!,押す
1 en es ja
2 TEXT_CONTINUE Press enter or B to continue Presiona Intro o B para continuar Enter または B を押して続行します
3 KEY_PUSH Push Me! Aprétame! 押す

17
text.csv.import Normal file
View file

@ -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

BIN
text.en.translation Normal file

Binary file not shown.

BIN
text.es.translation Normal file

Binary file not shown.

BIN
text.ja.translation Normal file

Binary file not shown.