diff options
Diffstat (limited to 'src/sdp/abstraction.d')
-rw-r--r-- | src/sdp/abstraction.d | 9 |
1 files changed, 9 insertions, 0 deletions
diff --git a/src/sdp/abstraction.d b/src/sdp/abstraction.d index c1907f7..380be1d 100644 --- a/src/sdp/abstraction.d +++ b/src/sdp/abstraction.d @@ -100,6 +100,15 @@ template SiSUabstraction() { string _k = fn_src; return _k; } + auto language() { + string _k; + if (auto m = match(fn_src, rgx.language_code_and_filename)) { + _k = m.captures[1]; + } else { + _k = "en"; + } + return _k; + } auto file_insert_list() { string[] _k = _0_header_1_body_content_2_insert_filelist_tuple[2]; return _k; |