Customising shutdown message

Newb here. I’m trying to customise the message displayed to user when
our device shuts down. We are required to translate this message
depending on the user’s last used language.

Has anyone created a shutdown splash screen before?

I get the feeling that I may need to write a shutdown utiliity from
scratch. Is there a reference I can refer to regarding the sequence
of events during shutdown?

Many thanks