Skip to content

Instantly share code, notes, and snippets.

@alabamenhu
Created September 4, 2020 13:14
Show Gist options
  • Save alabamenhu/73799fca73f9f31a855445a07e2f34b2 to your computer and use it in GitHub Desktop.
Save alabamenhu/73799fca73f9f31a855445a07e2f34b2 to your computer and use it in GitHub Desktop.
Localization template
my %translations = Map.new:
=begin pod
=class X::Cannot::Lazy
=updated 2020-05-01
=begin code
$.what
?? "Cannot $.action a lazy list onto a $.what"
!! "Cannot $.action a lazy list";
=end code
=end pod
'X::Cannot::Lazy' => method {
$.what
?? "No se puede hacer $.action a un $.what con una lista perezosa"
!! "No se puede hacer $.action con una lista perezosa";
},
...,
...;
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment