Language resource file for routes with variables #108
Answered
by
jarda-svoboda
akiarostami
asked this question in
Q&A
-
Hello, One of the great features of this library is being able to load a language resource specific to a route in the loaders section of config. However, this seems to only work for static paths (e.g. /blog). I can't find a way to pass a variable part (e.g. /bog/[title], where [title] section changes for each blog entry). Is it possible to do that with this library? Thank you. |
Beta Was this translation helpful? Give feedback.
Answered by
jarda-svoboda
Jul 9, 2023
Replies: 1 comment 1 reply
-
HI @akiarostami! |
Beta Was this translation helpful? Give feedback.
1 reply
Answer selected by
akiarostami
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
HI @akiarostami!
If i understand you corectly you just need to pass a RegExp instead of static (string) path into your loader's
paths
.