How to get project()'s language? #14126
-
Can it own an API like |
Beta Was this translation helpful? Give feedback.
Answered by
eli-schwartz
Jan 13, 2025
Replies: 1 comment 2 replies
-
No, this is not currently possible. I am not able to immediately think of a use case for doing such a thing. What is your objective? |
Beta Was this translation helpful? Give feedback.
2 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
The
add_languages()
function is equivalent to specifying in the project() definition but is usually used for doing conditional language addition. You can use it here to reduce duplication as well:You can then use the
languages
variable again for other purposes.