%%
%% This is file `komacv-multilang.sty',
%% generated with the docstrip utility.
%%
%% The original source files were:
%%
%% komacv-multilang.dtx  (with options: `package')
%% 
%% Copyright (C) 2016-2018 by Richard Grewe <r-g+tex@posteo.net>
%% 
%% This file may be distributed and/or modified under the conditions of
%% the LaTeX Project Public License, either version 1.2 of this license
%% or (at your option) any later version.  The latest version of this
%% license is in:
%% 
%%    http://www.latex-project.org/lppl.txt
%% 
%% and version 1.2 or later is part of all distributions of LaTeX version
%% 1999/12/01 or later.
%% 
\NeedsTeXFormat{LaTeX2e}[1999/12/01]
\ProvidesPackage{komacv-multilang}
    [2018/11/02 v0.9.2 Package for multi-lingual extension to komacv]

\RequirePackageWithOptions{multilang}
\RequirePackage{multilang-tags}
\RequirePackage{multilang-sect}
\PassOptionsToPackage{useregional}{datetime2}
\RequirePackage{datetime2,datetime2-calc}
\RequirePackage{translations}
\NewMultilangType{date}{\DTMdate{#1}}
\NewMultilangType{shortdate}{%
  \DTMsetdatestyle{Myyyy}\DTMdate{#1}\DTMsetdatestyle{default}}
\NewMultilangType[2]{daterange}{%
  \DTMsetdatestyle{Myyyy}\DTMdate{#1} --
  \ifstrequal{#2}{*}%
    {\GetTranslation{today}}%
    {\DTMdate{#2}}\DTMsetdatestyle{default}}
\DTMnewdatestyle{Myyyy}{%
  \def\DTMdisplaydate##1##2##3##4{\DTMtwodigits{##2}/##1}}
\DeclareTranslation{english}{today}{today}
\DeclareTranslation{german}{today}{heute}
\DeclareTranslation{french}{today}{aujourd'hui}
\NewMultilangType{list}{\kcvml@list{#1}}
\newcommand\kcvml@list[1]{%
  \begin{minipage}[t]{\linewidth}%
  \let\Item=\kcvml@listitem
  \let\@noitemerr\relax
  \compactitem
  #1%
  \ifhmode\unskip\strut\fi
  \endcompactitem
  \end{minipage}}
\NewMultilangCmd{\kcvml@listitem}{disablable,
  command=\item, margs=value}
\NewMultilangCmd{\BasicEntry}{disablable,
  command=\cvitem,
  oargs={spacing},
  margs={header,text},
  alias/both={header,text},
}
\NewMultilangCmd{\CommentedEntry}{disablable,
  command=\cvitemwithcomment,
  oargs={spacing},
  margs={header,text,comment},
  alias/all={header,text,comment},
}
\NewMultilangCmd{\DoubleEntry}{disablable,
  command=\cvdoubleitem,
  oargs={spacing},
  margs={header1,text1,header2,text2},
  alias/first={header1,text1},
  alias/second={header2,text2},
}
\NewMultilangCmd{\EducationEntry}{disablable,
  command=\cventry,
  oargs={spacing},
  margs={when,degree,institution,where,grade,details},
  defaults={details={}},
}
\NewMultilangCmd{\EmploymentEntry}{disablable,
  command=\cventry,
  oargs={spacing},
  margs={when,title,employer,where,@grade,description},
  defaults={@grade={}, description={}},
}
\NewMultilangCmd{\AchievementEntry}{disablable,
  command=\cventry,
  oargs={spacing},
  margs={when,title,occasion,where,@grade,description},
  defaults={@grade={}, occasion={}, where={}, description={}},
}
\NewMultilangCmd{\EntryListItem}{disablable,
  command=\cvlistitem,
  oargs={spacing},
  margs={item},
}
\NewMultilangCmd{\EntryListDblItem}{disablable,
  command=\cvlistdoubleitem,
  oargs={spacing},
  margs={first,second},
  alias/both={first,second},
}
\endinput
%%
%% End of file `komacv-multilang.sty'.
