The PetClinic Application contains locale files located in src/main/resources/static/resources/messages
you can use Copilot to create new translations for the application.
-
Create a new file in
src/main/resources/static/resources/messages
with the name of the locale you want to translate to. For examplemessages_fr.properties
for French. -
Use Copilot to translate the file.
Possible Flow
- Create a new file for example
messages_fr.properties
ormessages_de.properties
- Copy and paste the content from
messages.properties
into the new file - Select all the content with
Ctrl + A
(or your mouse) - Press
Comment + i
, or right click and selectStart Inline Chat
- Type
Translate to French
orTranslate to German
- Let the magic happen!
Note: The application itself does not use these files, they are only used for the exercise.